Error with Winsock
When I try to use Winsock, I get an error that says:
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/Server.exe : fatal error LNK1120: 1 unresolved externals
Any idea what the problem is?
------------------
Stupid Morons- my current projects
You are compiling a windows application and provided a main() entry point.
Fix it by changing from /SUBSYSTEM:WINDOWS to /SUBSYSTEM:CONSOLE in the project options, or replacing main() by WinMain().
[edited by - Fruny on April 7, 2002 12:45:47 PM]
Fix it by changing from /SUBSYSTEM:WINDOWS to /SUBSYSTEM:CONSOLE in the project options, or replacing main() by WinMain().
[edited by - Fruny on April 7, 2002 12:45:47 PM]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
Even cooler...remove the /SUBSYSTEM linker switch all together The linker is smart enough to figure out what it needs.
Dire Wolf
www.digitalfiends.com
Dire Wolf
www.digitalfiends.com
[email=direwolf@digitalfiends.com]Dire Wolf[/email]
www.digitalfiends.com
www.digitalfiends.com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement