1848767 Members
4967 Online
104036 Solutions
New Discussion

Re: HP C Preprocessor

 

HP C Preprocessor

Hi Admins,

We moved some of the sources from one machine to another.On new machine the preprocessor is HP92453-01 B.11.11.02 HP C Preprocessor and on the old one it is HP92453-01 A.11.00.13 HP C Preprocessor. While compiling it gives problem due to version difference.
Is there any way to overcome it? (with some options)

Thanks in advance,
Srini
It Has Been...
2 REPLIES 2
Gregory Fruth
Esteemed Contributor

Re: HP C Preprocessor

I doubt that the cpp is the culprit; the problem is
more likely in your systems' C or math libraries.

But to see what cpp is up to, simply add the -E
option to the cc command line: "cc -E *.c > logfile".
Then "logfile" will contain the processed version
of your source code (i.e. with all #define, #include,
etc. directives evaluated). Then you can compare
the results from your two machines to see if there's
a difference.

HTH
A. Clay Stephenson
Acclaimed Contributor

Re: HP C Preprocessor

Hi:

I suspect it is because some environemnt variables are defined differently on the two boxes. This is impossible to diagnose without data. You will need to list a snippet of code and the error messages.


If it ain't broke, I can fix that.