954,505 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Linking errors of socket functions

I am currently getting 33 linking errors like the following:

c:\msvc\mfc\lib\lafxcwd.lib(sockcore.cpp) : error L2029: 'WSAASYNCSELECT' : unresolved external
c:\msvc\mfc\lib\lafxcwd.lib(sockcore.cpp) : error L2029: 'GETHOSTBYNAME' : unresolved external
c:\msvc\mfc\lib\lafxcwd.lib(sockcore.cpp) : error L2029: 'WSASTARTUP' : unresolved external

in each one is a different socket function. Each function listed in the errors appears nowhere in my program. I know that there has to be one thing that will make them all go away. can anyone help?

thanks,
Tanner

tanner0035
Newbie Poster
1 post since Aug 2004
Reputation Points: 10
Solved Threads: 0
 

You're -not- using winsock? Odd. Well, one of the modules you're including is. Option 1, nuke that module. Option 2 (a hack), link against WS2_32.Lib.

glSuccinct
Newbie Poster
13 posts since Aug 2004
Reputation Points: 13
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You