[CMake] CMake 2.4.6, MinGW and console application

Sebarnolds [Seb / Frip] sebarnolds at hotmail.com
Thu Jul 5 09:59:24 EDT 2007


Thank you both of you, I will try your suggestions tonight and report back 
tomorrow, whether I succeed or not.

Sebastien


>From: Mike Jackson <imikejackson at gmail.com>
>To: "Brandon Van Every" <bvanevery at gmail.com>
>CC: cmake at cmake.org
>Subject: Re: [CMake] CMake 2.4.6, MinGW and console application
>Date: Thu, 5 Jul 2007 09:54:33 -0400
>
>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
>
>_______________________________________________
>CMake mailing list
>CMake at cmake.org
>http://www.cmake.org/mailman/listinfo/cmake

_________________________________________________________________
MSN Messenger: appels gratuits de PC à PC ! 
http://www.msn.fr/msger/default.asp



More information about the CMake mailing list