LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices

Reply
 
Search this Thread
Old 03-04-2008, 08:53 PM   #1
savagert
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Rep: Reputation: 0
After installed gcc on AIX5.3,there hava a problem.


After installed gcc on AIX5.3,there hava a problem.

System:AIX 5.3
DownLoad software form
address:http://www03.ibm.com/systems/p/os/ai.../download.html
Five *.rpm
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

After installed,c programme is succeed.But c++ programme have an error.It

is cllect2: libm is can not find.After install libm form disk of

AIX,there hava an error when i translate the c++ programme.


ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char,

std::char_traits<char> >& stderator<< <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

My c++ programme like this:
#include <iostream>
using namespace std;

int main(int argc, char **argv)
{
cout<<"Hello\n";
return 0;
}

can you help me solve this problem?
Thanks a lot!!!

My Email:savagert@163.com
My MSN :savagert@163.com
 
Old 03-14-2008, 02:59 AM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
do you have bos.adt.libm fileset installed?

to check

lslpp -l | grep libm
 
Old 03-22-2008, 10:44 AM   #3
Michael AM
Member
 
Registered: May 2006
Distribution: AIX 5.3, AIX 6.1, AIX 7.1
Posts: 95

Rep: Reputation: 23
Installing software rpm.rte

Please note the message from the AIX Toolbox regarding adding installp libraries after installing rpm.rte.
Quote:
If an RPM requires a shared library from AIX which was not installed at the
time that rpm.rte was initially installed, then you can run /usr/sbin/updtvpkg
to update RPM's reflection of the software installed by installp.
Although, the reason for doing this is generally because the RPM's fail to install because they think they are missing a prerequisite.
 
Old 03-23-2008, 11:42 PM   #4
savagert
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Original Poster
Rep: Reputation: 0
I have solve this problem by myself.
I change another edition of Gcc.It is work well.
Thanks a lot!!!

My Email:savagert@163.com
My MSN :savagert@163.com
 
Old 03-25-2008, 10:25 AM   #5
Michael AM
Member
 
Registered: May 2006
Distribution: AIX 5.3, AIX 6.1, AIX 7.1
Posts: 95

Rep: Reputation: 23
Which version are you using now?
 
Old 03-26-2008, 07:51 PM   #6
savagert
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Original Poster
Rep: Reputation: 0
aix_gcc3.3.2-5for_aix5.3
this version it is work well.
but you need delete other version of Gcc first.
if you need more information . you can add my MSN or email

My Email:savagert@163.com
My MSN :savagert@163.com

Good luck!

Last edited by savagert; 03-26-2008 at 08:00 PM.
 
Old 03-30-2008, 02:54 PM   #7
Michael AM
Member
 
Registered: May 2006
Distribution: AIX 5.3, AIX 6.1, AIX 7.1
Posts: 95

Rep: Reputation: 23
I usually try to use the IBM C compiler that I have (version 7, which is getting quite old).

From a download site now down (University of California at San Diego) with an excellent repository of software I got this package once upon a time....

michael@x054:[/home/michael]/usr/local/bin/gcc -v
Using built-in specs.
Target: powerpc-ibm-aix5.3.0.0
Configured with: ../gcc-4.1.1/configure --disable-nls
Thread model: aix
gcc version 4.1.1

There should be a more current version of gcc out there somewhere.
 
Old 03-31-2008, 04:01 AM   #8
savagert
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Original Poster
Rep: Reputation: 0
thanks
I have get 4.2.0 version
but I can not find 4.1.1
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Avoid Another HAVA Train Wreck: Software Disclosure Requirements LXer Syndicated Linux News 0 03-08-2007 10:31 AM
how to install gcc-2.95.3 on AIX5.3 mayuhao AIX 7 07-26-2006 10:09 PM
Compiling gcc without any gcc installed my_kappa Linux - Software 5 01-30-2006 12:15 AM
Java1.4.2 64 bit License problem on AIX5.1 manoj142 Linux - Software 1 10-21-2005 05:21 PM
can't get GCC installed Skaan Linux - Newbie 2 05-26-2005 10:21 AM


All times are GMT -5. The time now is 08:45 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration