[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mingw-cross-env-list] Undefined references
From: |
Volker Grabsch |
Subject: |
Re: [Mingw-cross-env-list] Undefined references |
Date: |
Mon, 22 Nov 2010 11:00:44 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
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
Greets,
Volker
--
Volker Grabsch
---<<(())>>---