This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: std::_GLIBCPP_*
Hi Johannes,
Looks like the pthread library, perhaps you
have forgotten to specify -lpthread at link time?
Yours sincerely,
bjorn
"Kremp, Johannes" wrote:
>
> i'm on hp-ux 10.20 and using gcc-3.0.4.
>
> i want to link and got such messages:
>
> /usr/ccs/bin/ld: Unsatisfied symbols:
> std::_GLIBCPP_mutex_address_init() (code)
> pthread_once (code)
> std::_GLIBCPP_mutex_init() (code)
> pthread_mutex_unlock (code)
> std::_GLIBCPP_once (data)
> std::_GLIBCPP_mutex_address (data)
> std::_GLIBCPP_mutex (data)
> pthread_mutex_lock (code)
> collect2: ld returned 1 exit status
>
> which library must i linked in?
> thanks for help
>
> johannes