Boost logo

Boost Users :

From: Raul Huertas Diaz (rhuertas_at_[hidden])
Date: 2004-12-15 06:41:57


El Tue, 14 Dec 2004 09:22:35 -0700
Michael Garriss <mdg_at_[hidden]> escribió:

> i'm trying to get a product of ours to work on HP-UX. we are using
> gcc.
> it seems to build fine but:
>
> 1) when i link to a libboost_*.a i get unresolved symbols like this:
> ...
> collect2: ld returned 1 exit status

Did you use -lstdc++ when you link?

>
> 2) when i link to a .sl (which i get by just renaming the .so, not
> sure if that's right), i get this after running the executable:
>
> ...
>
>
> AH! can anyone offer any hints, leads, or advice?

Try to do a 'ldd' (/usr/ccs/bin/ldd) on the executable.
That will show you the dependencies.

We successfully use Boost with gcc in HP-UX, but our gcc is like this:

LANG=C gcc -v
Reading specs from
/opt/gcc-3.3.3/lib/gcc-lib/hppa64-hp-hpux11.11/3.3.3/specs
Configured with: /home/jroman/gcc-fuentes/gcc-3.3.3/configure
--prefix=/opt/gcc-3.3.3 --with-local-prefix=/usr/local/gcc-3.3.3
--enable-shared --with-gnu-as --with-as=/usr/local/pa20_64/bin/as
--with-gnu-ld --with-ld=/usr/local/pa20_64/bin/ld --enable-threads=posix
--enable-languages=c,c++ --with-dwarf2 --enable-nls
--host=hppa64-hp-hpux11.11
Thread model: posix
gcc version 3.3.3

So we use --with-ld=/usr/local/pa20_64/bin/ld.
Don't know if that could be your problem.

-- 
Raúl Huertas Díaz
TCP Sistemas e Ingenieria
rhuertas_at_[hidden]
http://www.tcpsi.es
Tfno.: 91.406.27.11
************************************************************************************************************************************************
*La información contenida en este mensaje de correo electrónico es confidencial y puede revestir el carácter de reservada.   *
*Está dirigida exclusivamente a la persona destinataria.                                                                                                   *
*El acceso o cualquier uso por parte de cualquier otra persona de este mensaje no están autorizados y pueden ser ilegales.*
*Si no es Ud. la persona destinataria, le rogamos que proceda a borrarlo.                                                                          *
*The information in this e-mail is confidential and may be legally privileged.                                                                        *
*It is intended solely for the addressee.                                                                                                                           *
*Access or any use by any other person to this Internet e-mail is not authorised and may be unlawful.                                 *
*If you are not the intended recipient, please delete this e-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