![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Sep 2005
Posts: 3
Rep Power: 0
![]() |
Winsock IRC bot errors
Hi,
I am currently trying to code a IRC socket on Windows using winsock.h warning C4013: 'snprintf' undefined; assuming extern returning int warning C4101: 'h' : unreferenced local variable Linking... main.obj : error LNK2001: unresolved external symbol _snprintf Debug/main.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. main.exe - 2 error(s), 2 warning(s) First warning line: snprintf(pong, sizeof(pong), "PONG :%s", pingpong+strlen("pong :")); Second warning line: struct hostent *h; I used snprintf on Linux for the same thing, Doesn't seem to work on Windows (Or am i doing something wrong?) Any help would be appreciated, Thanks.. |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Sep 2005
Posts: 3
Rep Power: 0
![]() |
Problem solved, Thanks anyway.
|
|
|
|
|
|
#3 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
What was the solution?
|
|
|
|
|
|
#4 |
|
Newbie
Join Date: Sep 2005
Posts: 3
Rep Power: 0
![]() |
sprintf(pong, "PONG :%s", pingpong+strlen("pong :"));
struct sockaddr_in target; Just a touch different from Linux, As that's what im used too.. Work's well now.. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|