From: Orhun B. <orh...@gm...> - 2008-09-07 19:11:55
|
It almost worked.. It compiles but, the link fails with 1>Linking... 1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup 1>C:\home\orhun\development\3rdparty\glsdkbuild\third_party\glfw\examples\Debug\triangle.exe : fatal error LNK1120: 1 unresolved externals The reason is SubSystem flag in Linker/System is set to "Windows", It should have been "Console". If I manually change it to "Console", everything works and I see the spinning triangle. I have no idea how this is set in CMake though. -- Orhun Birsoy |