Operating System - HP-UX
1748182 Members
3615 Online
108759 Solutions
New Discussion

Re: [hpux 11.31] gcc 4.7.1 install question

 
SOLVED
Go to solution
leebs
Occasional Collector

[hpux 11.31] gcc 4.7.1 install question

Hi, I am developing a s/w package on hp ux 11.31 and it requires gcc (c++11 support).

I installed both gcc-4.2.3 and gcc-4.7.1, but I got -std=c++11 error for gcc-4.2.3.
So, I installed gcc-4.7.1 and got error about hpux 11.23 and hpux 11.31 issue.

I tried to fix errors using mkheaders but it doesn't work.
( https://community.hpe.com/t5/Languages-and-Scripting/gcc-g-on-hpux-won-t-compile-can-t-find-stdint/m-p/4061767 )

Is there any way for me to install gcc-4.7.1 for hp ux 11.31?
or can I get gcc-src-4.7.1.depot.gz without AllianceOne membership (it's program doen't exist any more) from

http://h21007.www2.hpe.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=2a08725cc2f02110725cc2f02110275d6e10RCRD

Thanks in advance.
BS Lee

2 REPLIES 2
leebs
Occasional Collector
Solution

Re: [hpux 11.31] gcc 4.7.1 install question

I found below link, and it helps some errors fix.

/opt/hp-gcc-4.7.1/libexec/gcc/ia64-hp-hpux11.23/4.7.1/install-tools/mkheaders -v /opt/hp-gcc-4.7.1

https://community.hpe.com/t5/Languages-and-Scripting/How-to-adjust-AllianceOne-gcc-on-11-31-ia64/td-p/6569894

 

Now, I got new errors like this : error: 'to_string' is not a member of 'std'

Does anyone can guide me about this?

leebs
Occasional Collector

Re: [hpux 11.31] gcc 4.7.1 install question

I found work around way. I used method 2 instead of std::int2str().

http://stackoverflow.com/questions/5590381/easiest-way-to-convert-int-to-string-in-c

 

Thanks.

BS Lee