Boost logo

Boost Users :

From: Zhoujie Mao (zhoujie_at_[hidden])
Date: 2004-09-23 00:23:34


Thanks Jeff and Vladimir. The problem is gone. But a
new one came up.

[Linker error] undefined reference to
`pthread_mutex_lock'

I guessed I should include libboost-thread-gcc-1_31 as
well. But I only found libboost-thread-gcc-1_31.dll,
is there anyway I can get around this? or I am out of
luck with windows?

George
--- Jeff Garland <jeff_at_[hidden]>
wrote:

> On Mon, 20 Sep 2004 20:33:51 -0700 (PDT), Zhoujie
> Mao wrote
>
> I'm going to presume the built library file
> libboost_date_time-gcc-1_31.a is
> in D:/boost/lib. Please double check that.
>
> > Below is part of my make file
> > CPP = g++.exe
> > CC = gcc.exe
> > WINDRES = windres.exe
> > RES =
> > OBJ = main.o $(RES)
> > LINKOBJ = main.o $(RES)
> > LIBS = -L"D:/Dev-Cpp499/lib" -L"D:/boost/lib"
> > -L"D:/boost/lib/libboost_date_time-gcc-1_31.a"
> ^^^^^^^^^^^^ this looks wrong ^^^^^^^^^^^
> change it to the following:
>
> -lboost_date_time-gcc-1_31
>
> so your LIBS line looks like:
>
> LIBS = -L"D:/Dev-Cpp499/lib" -L"D:/boost/lib"
> -lboost_date_time-gcc-1_31
>
>
> > I did include the libboost_date_time-gcc-1_31 but
> it
> > did not work.
>
> Well, not actually because the -L controls the
> search path and you can't point
> it directly to the library....
>
> HTH,
>
> Jeff
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
>
http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

                
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com


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