1833752 Members
2615 Online
110063 Solutions
New Discussion

gcc install problem

 
Tony I.S Suh
Occasional Contributor

gcc install problem

#swinstall -x allow_incompatible=true -s /data1/kmms_src/k4m/gcc-3.2-sd-11.00.depot gcc

sample test.cpp
#include

int main()
{
cout << "Hello\n";
}

#g++ -o test test.cpp

/usr/local/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated.

What's Problem?
cyber_dol
3 REPLIES 3
H.Merijn Brand (procura
Honored Contributor

Re: gcc install problem

Would you be able to rebuild gcc from it's source (ftp://ftp.nluug.nl/mirror/languages/gcc/snapshots/gcc-3.2.1-20021111.tar.bz2 )using the installed gcc?

Gcc adapts to the system by altering the system include files to it's own path while building. Please note that in order to successfully build gcc on HP-UX, you need recent binutils. More guidance can be found on my ITRC page at https://www.beepz.com/personal/merijn where you can also find my ports of gcc/binutils on HP-UX 10.20 and 11.00
Enjoy, Have FUN! H.Merijn
Stefan Farrelly
Honored Contributor

Re: gcc install problem

Why did you use -x allow_incompatible=false when you installed it ? do you have multiple versions of gcc installed ?

what does; swlist -l fileset | grep gcc
show ? > 1 version ?
I think you have multiple versions installed and to be clean remove all versions of gcc and only install the one you want or else compiles can get confused.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Harri Pasanen_1
Advisor

Re: gcc install problem

There is nothing wrong with the gcc installation. It is simply complaining about , as that is depracated and replaced with

If you read the warning it emits, it becomes obvious.