Error in linknig C++ STL code using CC 5.0 on Solaris 2.6

Error in linknig C++ STL code using CC 5.0 on Solaris 2.6

Post by gila » Thu, 27 Dec 2001 17:04:30



Hi All,

 When building a shared dynamic library from C/C++ code using
 STL features,  I get an a link error, referring to the STL objects in
use.

 I use CC WorkShop C++ Compiler 5.0 running on Solaris 2.6.

 For example:
   using a vector<int> we get :
      Undefined Symbol  
__1cDstdGvector4Cin0AJallocator4Ci___M__insert_aux6Mpirki_v_
      In File          aaa.o

   using a multimap<int,int> we get :
      Undefined Symbol
__1cH__rwstdJ__rb_tree4CinDstdEpair4CkiCi__n0AL__select1st4n0C_Ci__n0BEless4Ci__n0BJallocator4n0C____U__deallocate_buffers6M_v_
      In File          aaa.o

 etc.

 Switching (for testing) from shared lib to an exe does not seem
 to solve this issue.

 Same goes for toggling libCstd & libCrun's link mode (dyn/stat).

 Any suggestions would be appreciated!

Thank you,
Gilad

 
 
 

Error in linknig C++ STL code using CC 5.0 on Solaris 2.6

Post by Griff Miller I » Thu, 24 Jan 2002 13:20:31



> Hi All,

>  When building a shared dynamic library from C/C++ code using
>  STL features,  I get an a link error, referring to the STL objects in
> use.

I vaguely remember that a patch was available to address this. Do a search
on "stl" at http://sunsolve.sun.com/ and see if anything comes up.

--
Griff Miller II
Manager of Information Technology
Positron Corporation                "I need to be the owner of all of


 
 
 

1. Error in linknig C++ STL code using CC 5.0 on Solaris 2.6

Hi All,

 When building a shared dynamic library from C/C++ code using
 STL features,  I get an a link error, referring to the STL objects in
use.

 I use CC WorkShop C++ Compiler 5.0 running on Solaris 2.6.

 For example:
   using a vector<int> we get :
      Undefined Symbol  
__1cDstdGvector4Cin0AJallocator4Ci___M__insert_aux6Mpirki_v_
      In File          aaa.o

   using a multimap<int,int> we get :
      Undefined Symbol
__1cH__rwstdJ__rb_tree4CinDstdEpair4CkiCi__n0AL__select1st4n0C_Ci__n0BEless4Ci__n0BJallocator4n0C____U__deallocate_buffers6M_v_
      In File          aaa.o

 etc.

 Switching (for testing) from shared lib to an exe does not seem
 to solve this issue.

 Same goes for toggling libCstd & libCrun's link mode (dyn/stat).

 Any suggestions would be appreciated!

Thank you,
Gilad

2. ^S/^Q lockup

3. cc errors on Solaris 2.6 - does Solaris come with a compiler anymore?

4. jumpstarting x86?

5. CC compiler ( 5.0 ) on Solaris 2.6

6. Test

7. Problem with smail and

8. Can't find usr/include using cc on Solaris 2.6

9. Optimising numerically intensive C++ code using CC and/or gcc

10. STL problems in CC 5.0

11. Building C++ (STL) using GCC 3.0.1 under Solaris 7

12. Accessing I/O address space using C/C++ under Solaris 2.6??