This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Problem with '-static' in 3.0 release on AIX
- To: gcc at gcc dot gnu dot org
- Subject: Problem with '-static' in 3.0 release on AIX
- From: Matt_Conway at i2 dot com
- Date: Tue, 19 Jun 2001 11:58:40 -0400
I get the following problem when linking a simple hello world app with gcc
3.0 release on AIX 4.3.3. The app works fine if I do not use the
'-static' flag. Do I need to do something else to link statically, or is
this a bug?
I configured/installed using:
../gcc-3.0/configure
--enable-threads=pthreads
--prefix=/opt/gcc-3.0
--with-gnu-as
--with-as=/opt/gnupro/aix43-000718/H-powerpc-ibm-aix4.3.3.0/bin/as
[/u/conwaym/src/cpptest]-> g++ -static -o hello hello.cpp
ld: 0711-212 SEVERE ERROR: Symbol __quous, found in the global symbol
table
of archive
/opt/gcc-3.0/lib/gcc-lib/powerpc-ibm-aix4.3.3.0/3.0/../../../libstdc++.a,
was not defined in archive member libstdc++.so.3.
ld: 0711-212 SEVERE ERROR: Symbol __mulh, found in the global symbol table
of archive
/opt/gcc-3.0/lib/gcc-lib/powerpc-ibm-aix4.3.3.0/3.0/../../../libstdc++.a,
was not defined in archive member libstdc++.so.3.
ld: 0711-224 WARNING: Duplicate symbol:
std::_Format_cache<char>::_S_pword_ix
ld: 0711-224 WARNING: Duplicate symbol: std::numpunct<char>::id
ld: 0711-341 WARNING: Replaced XTY_CM symbol
std::numpunct<char>::idrequires an
alignment more strict than the alignment of the symbol that
replaces it.
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 12 exit status
hello.cpp:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello" << endl;
}