
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 (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 -----boost-bounces@lists.boost.org wrote: ----- To: boost@lists.boost.org From: "Prashant Thakre" <prashant.thakre@gmail.com> Sent by: boost-bounces@lists.boost.org Date: 10/09/2007 02:27AM Subject: Re: [boost] [filesystem] operations_posix_windows missing std On 08/10/2007, William SleemanIV <wsleemaniv@mcvh-vcu.edu> wrote:
I am getting the following errors when trying to link the simple_ls
example
using SunStudio11 and 12:
Undefined first referenced symbol in file std::allocator<char>::~allocator()
/rdo/home/fsleeman/boost_1_32_0-install/lib/libboost_filesystem-sw-mt-d.a(operations_posix_windows.o)
std::string::basic_string()
/rdo/home/fsleeman/boost_1_32_0-install/lib/libboost_filesystem-sw-mt-d.a(operations_posix_windows.o)
int std::string::_M_compare(const char*,const char*,const char*,const char*)
/rdo/home/fsleeman/boost_1_32_0-install/lib/libboost_filesystem-sw-mt-d.a(path_posix_windows.o)
int std::char_traits<char>::compare(const char*,const char*,unsigned
long)
/rdo/home/fsleeman/boost_1_32_0-install/lib/libboost_filesystem-sw-mt-d.a(path_posix_windows.o)
std::string::basic_string(std::_String_reserve_t,unsigned long,const std::allocator<char>&)
/rdo/home/fsleeman/boost_1_32_0-install/lib/libboost_filesystem-sw-mt-d.a(path_posix_windows.o)
std::string &std::string::append<const char*>(__type_3,__type_3)
/rdo/home/fsleeman/boost_1_32_0-install/lib/libboost_filesystem-sw-mt-d.a(path_posix_windows.o)
ld: fatal: Symbol referencing errors. No output written to simple_ls
The related lines in my Makefile are the following: CC -o simple_ls simple_ls.o -features=tmplife -features=tmplrefstatic -xarch=generic64 -L/usr/local/lib/sparcv9 -L/rdo/home/fsleeman/boost_1_32_0-install/lib -lCstd -lboost_filesystem-sw-mt-d
CC -xarch=generic64 -I/rdo/home/fsleeman/boost_1_32_0-install/include/boost-1_32 -I/usr/local/include -c simple_ls.cpp
Are some other options I am missing? I have had no trouble getting this
to
compile under g++.
Try adding "-library=stlport4" to compiler and linker options.
-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