Boost logo

Boost :

From: William SleemanIV (wsleemaniv_at_[hidden])
Date: 2007-10-11 16:23:18


I decided to try again from scratch now that I have posted to the list.
Starting with a fresh copy of 1.34.1, I went to the website with the Sun
build instructions. Bjam and boost built without any problems but I get
this error when linking the simple_ls example to the boost library:

Undefined first referenced
 symbol in file
std::ios_base::_Loc_init::_Loc_init()
/rdo/home/fsleeman/boost/boost_1_34_1/stage/lib/libboost_filesystem-sw.a(operations.o)

std::__Named_exception::__Named_exception #Nvariant 1(const std::string &)
/rdo/home/fsleeman/boost/boost_1_34_1/stage/lib/libboost_filesystem-sw.a(operations.o)

const char*std::__Named_exception::what()const
/rdo/home/fsleeman/boost/boost_1_34_1/stage/lib/libboost_filesystem-sw.a(operations.o)

void std::_String_base<char,std::allocator<char>
>::_M_throw_out_of_range()const
/rdo/home/fsleeman/boost/boost_1_34_1/stage/lib/libboost_filesystem-sw.a(operations.o)

std::string &std::string::_M_assign_dispatch<char*>(__type_3,__type_3,const
std::__false_type&)
/rdo/home/fsleeman/boost/boost_1_34_1/stage/lib/libboost_filesystem-sw.a(operations.o)

std::allocator<char>::~allocator()
/rdo/home/fsleeman/boost/boost_1_34_1/stage/lib/libboost_filesystem-sw.a(operations.o)

std::string::basic_string()
/rdo/home/fsleeman/boost/boost_1_34_1/stage/lib/libboost_filesystem-sw.a(operations.o)

std::ios_base::_Loc_init::~_Loc_init()
/rdo/home/fsleeman/boost/boost_1_34_1/stage/lib/libboost_filesystem-sw.a(operations.o)

void std::__node_alloc<true,0>::_M_deallocate(void*,unsigned)
/rdo/home/fsleeman/boost/boost_1_34_1/stage/lib/libboost_filesystem-sw.a(operations.o)

ld: fatal: Symbol referencing errors. No output written to simple_ls
make: *** [simple] Error 1

The simple_ls example was built with the command:

CC -I/rdo/home/fsleeman/boost/boost_1_34_1 -c simple_ls.cpp
CC -o simple_ls simple_ls.o
-L/rdo/home/fsleeman/boost/boost_1_34_1/stage/lib -lboost_filesystem-sw

And boost was built using this command:

./tools/jam/src/bin.solaris/bjam toolset=sun stdlib=sun-stlport
-libary=stlport4 stage

Are those the correct parameters?

Thanks,
Ford Sleeman

-----boost-bounces_at_[hidden] wrote: -----

To: boost_at_[hidden]
From: "Prashant Thakre" <prashant.thakre_at_[hidden]>
Sent by: boost-bounces_at_[hidden]
Date: 10/09/2007 12:47PM
Subject: Re: [boost] [filesystem] operations_posix_windows missing std

On 09/10/2007, William SleemanIV <wsleemaniv_at_[hidden]> wrote:
> I added the -library=stlport4 option to the compile and link lines but
got
> these linker warnings:
>
> ld: warning: symbol `std::moneypunct::__vtbl' has differing sizes:
> (file /opt/SunStudio11/SUNWspro/lib/v9/libCstd.so value=0x70; file
> /opt/SunStudio11/SUNWspro/lib/stlport4/v9/libstlport.so
> value=0x60);
> /opt/SunStudio11/SUNWspro/lib/v9/libCstd.so definition taken
> ld: warning: symbol `std::numpunct::__vtbl' has differing sizes:
> (file /opt/SunStudio11/SUNWspro/lib/v9/libCstd.so value=0x50; file
> /opt/SunStudio11/SUNWspro/lib/stlport4/v9/libstlport.so
> value=0x40);
> /opt/SunStudio11/SUNWspro/lib/v9/libCstd.so definition taken
>
  Can you check if "-library=stlport4" was used while building boost
  libraries.

  http://blogs.sun.com/sga/ has instructions to build boost on Solaris
with Studio 11/12.

> (There were a lot more warning just like these)
>
> When I try to run the simple_ls program I get a seg fault.
>
> -Ford Sleeman
>

--
regards,
Prashant Thakre
_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost
NOTE: The information contained in this message may be privileged and
confidential and protected from disclosure. If the reader of this message
is not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this communication in error, please notify
us immediately by replying to the message and deleting it from your
computer.
--------------------------------------
VCU Health System
http://www.vcuhealth.org

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk