1833549 Members
3010 Online
110061 Solutions
New Discussion

Re: gcc cannot compile

 
SOLVED
Go to solution
Fay_1
Contributor

gcc cannot compile

Hello,
I installed binutil and gcc tool using swintall on HPUX 1020. It seems to install fine but doing a simple "gcc helloWorld.cpp -o test", I got the following error and there are no output file:

In file included from /usr/include/sys/resource.h:21,
from /usr/include/sys/wait.h:83,
from /opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.20/3.0.1/include/stdlib.h:239,
from /opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.20/3.0.1/include/wchar.h:22,
from /opt/gcc/include/g++-v3/bits/std_cwchar.h:42,
from /opt/gcc/include/g++-v3/bits/fpos.h:40,
from /opt/gcc/include/g++-v3/bits/std_iosfwd.h:41,
from /opt/gcc/include/g++-v3/bits/std_ios.h:39,
from /opt/gcc/include/g++-v3/bits/std_ostream.h:39,
from /opt/gcc/include/g++-v3/bits/std_iostream.h:40,
from /opt/gcc/include/g++-v3/backward/iostream.h:32,
from test.cpp:2:
/usr/include/sys/time.h:337: `extern' can only be specified for objects and
functions
2 REPLIES 2
Hartmut Lang
Trusted Contributor
Solution

Re: gcc cannot compile

Do you have the patch PHKL_8693 (Series 700) or PHKL_8692 (Series 800) installed?

Also see other forum posting at
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x87cd35067c18d6118ff40090279cd0f9,00.html

Hardy
Steve Steel
Honored Contributor

Re: gcc cannot compile

Hi

look at

http://gcc.gnu.org/ml/gcc-help/2000-03/msg00015.html

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)