The problem after install gcc on AIX 5.3

Thread Tools Search this Thread
Operating Systems AIX The problem after install gcc on AIX 5.3
# 1  
Old 01-01-2008
The problem after install gcc on AIX 5.3

The problem after install gcc on AIX 5.3

I download 5 rpm packages from IBM AIX Toolbox Download Page - Alphabetical Listing and install them.
rpm -ivh gcc-4.0.0-1.aix5.3.ppc.rpm
rpm -ivh libgcc-4.0.0-1.aix5.3.ppc.rpm
rpm -ivh libstdcplusplus-4.0.0-1.aix5.3.ppc.rpm
rpm -ivh libstdcplusplus-devel-4.0.0-1.aix5.3.ppc.rpm
rpm -ivh gcc-cplusplus-4.0.0-1.aix5.3.ppc.rpm

But when I compile a cpp file like this :
#include <iostream>
using namespace std;

int main(int argc, char **argv)
return 0;

it returns like :
ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> >& stdSmilieerator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status

What I can do to solve this problem? Thanks a lot!
# 2  
Old 01-02-2008
try using the GNU linker included with the binutils package.

download and install the binutils-2.14-3.aix5.1.ppc.rpm


export PATH=/opt/freeware/bin:$PATH

does this work?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Problems to install gcc 7.2 on AIX 7.2

We need gcc 7.2 on AIX 7.2 and so I tried to install the rpm package from IBM (<>) The steps were as follows (I downloaded all packages from the given IBM toolbox page): # :-)rpm -ihv gcc-7.2.0-1.aix7.2.ppc.rpm error:... (2 Replies)
Discussion started by: BuSchu
2 Replies

2. AIX

Gcc compilation problem on AIX 6.1

Hi, I have to compile a program on my server, runs on AIX 6.1. On my test server the compilation is ok (AIX 6.1); but when I try it on production server, I have this gcc prog.c -o prog_out In file included from resmon.c:111: /usr/include/unistd.h:924: error: expected ')' before ' I noticed... (1 Reply)
Discussion started by: tnjulius
1 Replies

3. AIX

Unable to install gcc in AIX 5.3

Hello... I have downloaded RPM for gcc in a directly where I tried installing using rpm but it says the following /oracle/dB>rpm -iv gcc-4.2.0-3.aix5.3.ppc.rpm failed to open /var/opt/freeware/lib/rpm/packages.rpm: Permission denied error: cannot open... (4 Replies)
Discussion started by: shahnazurs
4 Replies

4. SuSE

Can't compile or install GCC

Hi all! I have posted in the Shell Programming Scripting Forum for a problem with the use of shc and so on... You can read it complete here: shell-programming-scripting/148510-problems-using-shc.html I think the problem is: that there aren't compiler installed on the SuSe 10.2 server,... (4 Replies)
Discussion started by: Magius
4 Replies

5. AIX

Upgrading AIX 5.2 to AIX 6.1 - GCC compatibility

Hi All, We are in the processing of upgrading our AIX server OS from to 6.1. And we have a set of highly critical running C applications in AIX box. I have a question like whether this upgradation of OS will affect any C code compilation and C runtime enviornment... how does AIX 6.1... (1 Reply)
Discussion started by: karthikc
1 Replies

6. Solaris

GCC install

well, i know wich GCC can be download by Manager package, easy! but I want install gcc "whith myself hands" I have gcc .tar and i cant install by console. after comand $make: erro ok! i dont have compiler, but i want install gcc! sorry my english... (6 Replies)
Discussion started by: Hyagosallet
6 Replies

7. AIX

Problem in SSH Install in AIX 4.3 Server.

Hi Friends I am trying to install ssh in one of my AIX4.3 server. I downloaded openssh and openssl from IBM site. While installing them openssh failed. The lpcheck command display looks like this: # lppchk -v lppchk: The following filesets need to be installed or corrected to bring ... (5 Replies)
Discussion started by: efunds
5 Replies

8. AIX

How to install gcc compiler on AIX?

I want to install gcc compiler on aix box. $uname -a AIX GTMIT 3 5 000000000000 Can any one help me installing gcc compiler(step by step)either by smit or rpm commands ? What is boot straping ? Its urgent .. Thanks in advance (2 Replies)
Discussion started by: kittu1979
2 Replies

9. Solaris

Can`t install gcc compiler

Hi, Installed the gcc compiler off the Solaris 9 Companion CD a while back , but needed to delete it due to disk space issues. Now that I have sorted out our root disk space I can`t reinstall the compiler. If I select all the packages off the Development/Languages menu , the install list... (3 Replies)
Discussion started by: markdr011
3 Replies

10. Linux

gcc install error

I download a gcc3.0.tar.gz file ,then tar it. Continue,I change current path to gcc3.0 and press ./configure The error appeared ,it is CC command not found . Please tell me What can I do to pass on. (1 Reply)
Discussion started by: fansings
1 Replies
Login or Register to Ask a Question