|
Boost : |
From: Prashant Thakre (prashant.thakre_at_[hidden])
Date: 2007-10-09 02:27:39
On 08/10/2007, William SleemanIV <wsleemaniv_at_[hidden]> 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk