[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mingw-cross-env-list] Undefined references
From: |
Daniel Stonier |
Subject: |
Re: [Mingw-cross-env-list] Undefined references |
Date: |
Mon, 22 Nov 2010 20:44:57 +0900 |
oops, to the list as well
On 22 November 2010 19:00, Volker Grabsch <address@hidden> wrote:
> Daniel Stonier <address@hidden> schrieb:
>> I'm having some trouble compiling even a very simple program with
>> boost libraries. I've just a very simple program:
>> [...]
>>
>> and I've tried to compile it with a simple call to the compiler as follows:
>>
>> > i686-pc-mingw32-g++ -Wall main.cpp
>> > /opt/mingw/usr/i686-pc-mingw32/lib/libboost_thread_win32-mt.a -o dude.exe
>
> You can easily compile even your very simple program with a very
> simple call to the compiler as follows:
>
> i686-pc-mingw32-g++ main.cpp -DBOOST_THREAD_USE_LIB -lboost_thread_win32-mt
>
Cheers Volker - that works. Am curious though, I thought the
preprocessor magic was for auto-linking? (i.e. not for mingw and its
gnu cousins). And why doesn't the mingw_cross already know itself that
its using static libs (seems like it was just defaulting to trying to
use dll's).
Next step - qt with cmake. It too doesn't seem to realise itself that
it is linking static libs. Nor are the dependencies linking in all the
lower libraries (jpeg, mng etc). Has anyone here tried cmake with
mingw cross' qt?
Cheers,
Daniel.
>
> Greets,
> Volker
>
> --
> Volker Grabsch
> ---<<(())>>---
>
>
--
Phone : +82-10-5400-3296 (010-5400-3296)
Home: http://snorriheim.dnsdojo.com/
Yujin Robot: http://www.yujinrobot.com/
Embedded Ros : http://www.ros.org/wiki/eros
Embedded Control Libraries: http://snorriheim.dnsdojo.com/redmine/wiki/ecl