Hello Everyone,

I am having problems porting some of my code from 
an HP-UX 10.20 to Linux (RedHat5.1, 2.0.035) and wanted 
to find out if there are any known compatibility/porting problems.

Till recently I did all my C programming on an HP-UX - I transferred
all my code (directories et.al.) to a Linux machine and with few changes
to the code (eg. Linux wanted me to add a getopt.h - whereas getopt is 
defined in stdio.h under HP-UX) I was able to compile and run the code.
While compiling the code under linux, I used the different -W options one by one,
and now only have few seemingly harmless warnings (such as variable not used,
function definition used as prototype [where the function is defined right above
the place it is called] etc.). My programs do a lot of number crunching.

I am using gcc 2.7.2.3 under linux and cc under HP-UX.

Running the prgrams on the two different machines, I am getting starkly
different results with identical sets of input parameters ! I am wondering
if anyone else has also faced similar problems ? If som, I'd really appreciate it
if you could share your experience with me.

Thanks in advance for your help.

-dhiraj

Reply via email to