LNK2001: undefined external "_main"
Posted on 1997-05-21
Whenever I try to build the example WSOCK from the MS VC++ v4.2 samples\SDK\WIN32 folder, it will not link, claiming that "_main()" is undefined. I have followed the instructions for building a multithreaded application in the help file, which involves including the LIBCMT.LIB library, which would appear to cause this problem. As a windows program, there is no main() function, just a WinMain() function.
How do I avoid/get around this problem?