Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem compiling with c4gl and gcc

Rafael Moran
Advisor

Problem compiling with c4gl and gcc

Hello!

I'm working on a Nclass with 11.00 and Informix 7.31. After installing the gcc 3.0.4 depot and define appropiate variables to compile with gcc instead of cc i try to compile the next sample program:

database bddades

main

display "Hello World"

end main

and I obtain the next errors:

# c4gl hello.4gl
gcc: +DS2.0: No such file or directory
gcc: +DA2.0W: No such file or directory
: missing '(' after predicate

No a.out is generated only the next files:

hello.c
hello.ec
hello.4ec

Anyone can help me please ?

Thank you
Hi! I'm keko
6 REPLIES
H.Merijn Brand (procura
Honored Contributor

Re: Problem compiling with c4gl and gcc

+D... options are for HP C compilers only. They're probably embedded in a script that would build after detecting you are on a hppa-2.0w architectur.

Just remove these from the Makefile/script. I don't know if 3.0.2 already supports it, or if it went in with 3.0.4 but you could replace it with the gcc option -mpa-risc-2-0
Enjoy, Have FUN! H.Merijn
Rafael Moran
Advisor

Re: Problem compiling with c4gl and gcc

Thank you procura,

I tried it but I still have the error

: missing '(' after predicate

I revised the c4gl script but none is missing
Also I didn't modify it ( except removing the +D options )

I attached the c4gl script if you want to take a look.



Hi! I'm keko
H.Merijn Brand (procura
Honored Contributor

Re: Problem compiling with c4gl and gcc

Call the script as 'sh -v c4gl hello.4gl', it's show you what happens.

if you still don't see it, use sh -vx
Enjoy, Have FUN! H.Merijn
Rafael Moran
Advisor

Re: Problem compiling with c4gl and gcc

Thank you for your help procura,
Finally I removed all the installation and installed again the full package and everything is working fine now.
Also I changed the gcc compiler that was for 32 bits to the gcc 64 bit version.

Hi! I'm keko
H.Merijn Brand (procura
Honored Contributor
Rafael Moran
Advisor

Re: Problem compiling with c4gl and gcc

I tried this version
gcc 3.0.2 for 64-bit 11.0 and 11i

and everything is working fine now

Thank you for your help
Hi! I'm keko