Boost Users :
From: Cheney Stallman (zodist_at_[hidden])
Date: 2005-08-30 07:37:42
I have a question.
if I have two library libms1.a and libms1d, they have the some symbols.
what's will happen if I link with `-ls1 -ls1d'?
thanks in advanced.
On 8/30/05, Stephen Jackson <spjackson42_at_[hidden]> wrote:
> On Sat, 2005-08-27 at 23:13, Martin Cavanagh wrote:
> > g++ -IC:/Boost/include/boost-1_32 -LC:/Boost/lib -lboost_thread-mgw-mt
> > thread_test.cpp
> In this case you list the library _before_ your own code.
> > But when I run it as 2 commands:
> > g++ -IC:/Boost/include/boost-1_32 thread_test.cpp -o thread_test.o -c
> > g++ -LC:/Boost/lib -o manual_test thread_test.o -lboost_thread-mgw-mt
> > It compiles perfectly, no warnings or anything
> But here you list the library _after_ your own code.
> > is there some rule, for producing executables from librarys, that the
> > linking stage must be seperate????
> No. You can compile and link in a single step, provided you list the
> library after your own code. (You'll also want "-o manual_test"
> Stephen Jackson
> Boost-users mailing list
-- _______________________________ Reply mail in one business day. Email: zodist_at_[hidden]
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net