| | |
Winsock2.h and Platform SDK
![]() |
•
•
Join Date: Jun 2005
Posts: 33
Reputation:
Solved Threads: 1
•
•
•
•
Originally Posted by winbatch
You probably just need to incude the appropriate .lib in your studio project. Without the link error, I don't know which .lib...)
Linking...
a.obj : error LNK2001: unresolved external symbol "int __stdcall connect(unsigned int,struct sockaddr const *,int)" (?connect@@$$J212YGHIPBUsockaddr@@H@Z)
a.obj : error LNK2001: unresolved external symbol "unsigned short __stdcall htons(unsigned short)" (?htons@@$$J14YGGG@Z)
a.obj : error LNK2001: unresolved external symbol "unsigned long __stdcall inet_addr(char const *)" (?inet_addr@@$$J14YGKPBD@Z)
a.obj : error LNK2001: unresolved external symbol "int __stdcall WSACleanup(void)" (?WSACleanup@@$$J10YGHXZ)
a.obj : error LNK2001: unresolved external symbol "int __stdcall WSAGetLastError(void)" (?WSAGetLastError@@$$J10YGHXZ)
a.obj : error LNK2001: unresolved external symbol "unsigned int __stdcall socket(int,int,int)" (?socket@@$$J212YGIHHH@Z)
a.obj : error LNK2001: unresolved external symbol "int __stdcall WSAStartup(unsigned short,struct WSAData *)" (?WSAStartup@@$$J18YGHGPAUWSAData@@@Z)
H:\Project\work\aa\Debug\aa.exe : fatal error LNK1120: 7 unresolved externals
Build log was saved at "file://h:\Project\work\aa\aa\Debug\BuildLog.htm"
aa - 8 error(s), 0 warning(s)
pls help....
![]() |
Similar Threads
- Send data on a serial port (C++)
- winsock problem (C++)
- wsock32.lib (C++)
- Installing the SDK for VC++ 2005??? (C++)
- Can't Get Going with eVC++4.0 (C++)
Other Threads in the C Forum
- Previous Thread: Winsock LSP
- Next Thread: I-Q demod algorithm?
| Thread Tools | Search this Thread |
* adobe ansi api array asterisks binarysearch calculate centimeter char character cm convert copyanyfile copyimagefile copypdffile cprogramme createcopyoffile createprocess() csyntax directory feet fflush fgets file floatingpointvalidation fork frequency function getlasterror getlogicaldrivestrin givemetehcodez global graphics gtkgcurlcompiling gtkwinlinux hacking highest homework i/o inches infiniteloop interest intmain() kilometer km linked linkedlist linux linuxsegmentationfault list locate logical_drives match meter microsoft mqqueue mysql number oddnumber odf open opendocumentformat openwebfoundation owf pattern pdf performance posix power probleminc program programming pyramidusingturboccodes read recv recvblocked repetition scanf scheduling segmentationfault send single socketprograming socketprogramming stack standard strchr string suggestions systemcall unix urboc user variable voidmain() wab whythiscodecausesegmentationfault win32api windows.h





