Boost logo

Boost Users :

From: Zhoujie Mao (zhoujie_at_[hidden])
Date: 2004-09-28 14:15:06


--- Vladimir Prus <ghost_at_[hidden]> wrote:

> Zhoujie Mao wrote:
>
> > 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?
>
> Try adding -mthread to the linker command line (I'm
> not sure about the
> spelling, for check the docs). Or add
> -DBOOST_DISABLE_THREADS to the
> compiler options and rebuild. This assumes you're
> using gcc 3.3.

yes, I am using gcc 3.3. Tried both options, it did
not work. Checked gcc manual, could not find out a
solution.

Thanks.

George
>
> BTW, it's always a good idea to specify the version
> of compiler you're
> using, for gcc it can be obtained with "gcc -v".
>
> HTH,
> Volodya
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
>
http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

        
                
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail


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