[CMake] CMake 2.4.6, MinGW and console application
Mike Jackson
imikejackson at gmail.com
Thu Jul 5 09:54:33 EDT 2007
http://dev.eclipse.org/newslists/news.eclipse.tools.cdt/msg12121.html
I think you need to add:
TARGET_LINK_LIBRARIES(map2syBR mingw32) which should link your
program to the libmingw32.a that is included with the MinGW
Distribution.
--
Mike Jackson Senior Research Engineer
Innovative Management & Technology Services
On Jul 5, 2007, at 9:46 AM, Brandon Van Every wrote:
> On 7/5/07, Sebarnolds [Seb / Frip] <sebarnolds at hotmail.com> wrote:
>> Hi.
>>
>> >
>> >Do an ADD_EXECUTABLE *without* [WIN32] as an option. See the docs.
>>
>> I think you misunderstand me.
>
> You're right, I read too fast.
>
>> Whether I add or not the WIN32 option after
>> the ADD_EXECUTABLE, it complains about WinMain at 16. It doesn't seem
>> to change
>> anything.
>>
>> "ADD_EXECUTABLE(map2syBR map2syBR.cpp)" and "ADD_EXECUTABLE
>> (map2syBR WIN32
>> map2syBR.cpp)" have the same results.
>
> If you are ABSOLUTELY SURE your build is clean, no leftover stuff from
> previous builds, no funny flags, no weirdness anywhere, then this is a
> bug. But I think your build is not clean and you've got something
> left over somewhere. Try isolating with a very simple "hello world"
> and see what behavior you get.
>
>
> Cheers,
> Brandon Van Every
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list