[Bug c++/30504] New: Error when linking. Trying to create a library

2007-01-18 Thread dams_napp at hotmail dot com
Hi,

I am trying to create a C++ library and when doing a linking I am getting the
following error.

Here is the command

g++ -static -static-libgcc -Wl,-bexpfull,-bnoentry,-brtl -o libAllocation.so
*.o -L/vol.rtk/compilers/aix5.1.gcc-3.3/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3
-lgcc -lstdc++ -lc -lm

The error reported is 

ld: 0711-317 ERROR: Undefined symbol: .std::basic_string, std::allocator >::size() const
ld: 0711-317 ERROR: Undefined symbol: .std::allocator::allocator()
ld: 0711-317 ERROR: Undefined symbol: .std::allocator::~allocator()
ld: 0711-317 ERROR: Undefined symbol: .std::basic_string, std::allocator >::c_str() const
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.


When I am using the -bnoquiet option addition messages for error

ld: 0711-317 ERROR: Undefined symbol: .std::basic_string, std::allocator >::size() const
 .std::basic_string, std::allocator
>::size() const[2] ER PR VersionUtil.cpp(VersionUtil.o)
   002c .textR_RBR[22]   
.VersionUtil::getRevision(std::basic_string,
std::allocator > const&)
   00dc .textR_RBR[24]   
.VersionUtil::getModtime(std::basic_string,
std::allocator > const&)
ld: 0711-317 ERROR: Undefined symbol: .std::allocator::allocator()
 .std::allocator::allocator()[70]ER PR
casepack_cp_heur.cpp(casepack_cp_heur.o)
   00012154 .textR_RBR[594]  
.casePackAllocation_CP(bool, int, int, int, double**, double**, bool, int**,
int**, int**, int**, int*, int**, int**, int*, bool&, int*, int*, double*)
 .std::allocator::allocator()[8] ER PR VersionUtil.cpp(VersionUtil.o)
   01c0 .textR_RBR[26]   
.VersionUtil::getArchive(std::basic_string,
std::allocator > const&)
   02c4 .textR_RBR[26]   
.VersionUtil::getArchive(std::basic_string,
std::allocator > const&)


Could you please let me know what needs to be done to solve this error.

Thanks
Dham


-- 
   Summary: Error when linking. Trying to create a library
   Product: gcc
   Version: 3.3.2
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
    ReportedBy: dams_napp at hotmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30504



[Bug c++/30504] Error when linking. Trying to create a library

2007-01-19 Thread dams_napp at hotmail dot com


--- Comment #2 from dams_napp at hotmail dot com  2007-01-19 22:16 ---
Subject: RE:  Error when linking. Trying to create a library

Is there a better way to do that then, I do want to create a static library.

Take Care,
Dams

>From: "pinskia at gcc dot gnu dot org" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: [Bug c++/30504] Error when linking. Trying to create a library
>Date: 18 Jan 2007 22:12:38 -
>
>--- Comment #1 from pinskia at gcc dot gnu dot org  2007-01-18 22:12 
>---
>How are you creating a library with -static?
>The command line you posted looks more like you are linking in all of libc,
>libgcc, libstdc++ which all seems wrong.
>
>
>--
>
>
>http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30504
>
>--- You are receiving this mail because: ---
>You reported the bug, or are watching the reporter.

_
Do women make better employees? Join the debate 
http://msnspecials.in/debate/topicdetails.aspx?TID=64


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30504