1828700 Members
2568 Online
109984 Solutions
New Discussion

error compiling on cobol

 
SOLVED
Go to solution
Shaamil
Frequent Advisor

error compiling on cobol

Hi guys
I am using hp-ux 10.20 model k570 with micro focus cobol & I get this error when compiling with compj. Does anyone know what this means.

ld: (Warning) At least one PA 2.0 object file (/var/tmp/cob7751/_hp_ver_lhpcobl.o) was detected. The linked output may not run on a PA 1.x system
HP is the greatest
3 REPLIES 3
Alex Glennie
Honored Contributor

Re: error compiling on cobol

There are two methods of eliminating the PA2.0 message while compiling:

1. To produce optimized code use '+DAportable' on the command
line.

2. Turn off the warning in the linker with the '+vanocompat'
option set to 'ld'.
Ian Lochray
Respected Contributor

Re: error compiling on cobol

It is telling you that you have linked code on a 64-bit (PA 2.0) chip so the code will not run on a 32-bit (PA 1.x) chip.
You can get round the problem by specifying the option +DAportable on your cob command. This will produce and object that will run on PA1 or PA2 chips.
Ian Lochray
Respected Contributor
Solution

Re: error compiling on cobol

If you compile and link the code in seperate steps make sure that you specify +DAportable on both the compile and the link.