linker error using wxwidgets with cmake
问题 I'm getting following linker error when I compile my program with VS2008 solution which is created with CMake for my wxwidgets based application. error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup but I'm able to compile the same program with a normal VS2008 solution which is not created with CMake. cmakelists.txt file contents: cmake_minimum_required(VERSION 2.8) SET(CMAKE_DEBUG_POSTFIX "d") ADD_DEFINITIONS(-DOSG_DEBUG_POSTFIX="${CMAKE_DEBUG_POSTFIX}")