|
From: Hari S. <hs...@gm...> - 2009-07-27 20:38:18
|
Hi,
I am trying to use CMake to build a fox application under windows. It works
fine, except that I get a console to pop-up when I run the application. I
searched on the web and figured that adding WIN32 after the application name
as,
ADD_EXECUTABLE(${PROJECT_NAME} WIN32 demo.cpp)
should fix it. This however causes a link error as,
error LNK2001: unresolved external symbol _WinMain@16
How do I fix this ?
thanks,
Hari
|