Results 1 to 4 of 4
We need somebody's help on migrating C++ from HP-UX to Linux . We are presently trying to compile C++ code which was there on HP-UX to Linux. The code on ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-07-2013 #1Just Joined!
- Join Date
- Jan 2013
- Posts
- 2
Migrating C++ from HP-UX to Linux
We need somebody's help on migrating C++ from HP-UX to Linux . We are presently trying to compile C++ code which was there on HP-UX to Linux. The code on HP-UX points to certain files located on /usr/include/sys and /opt/aCC/include. I am attaching the list of files that are referenced while compiling but not presently there on Linux. Is there a solution by which we can use the existing files as it is from HP-UX and copy it to Linux and compile or any other suggestion while compiling. One thing i know is ansi c/c++ compiler and files are installed on HP-UX and hence the directory /opt/aCC/include. Should we install the same on Linux for this and also should we install files located on /usr/include/sys to Linux for compilation.
- 01-08-2013 #2Linux Newbie
- Join Date
- Aug 2006
- Posts
- 115
Hi
Those files appears to be the list of standard header files. Maybe you should only regenerate those files, finding the correct location for each one, and writing it to the new file. Something like this :
And then you'll need solving the differences between the 2 compilers, and between the versions of header files.Code:#!/bin/bash cat 1.txt | while read a ; do b=`basename $a` echo `find / -iname '$b'` >> 1_new.txt done
- 01-08-2013 #3Just Joined!
- Join Date
- Jan 2013
- Posts
- 2
- 01-08-2013 #4Linux Newbie
- Join Date
- Aug 2006
- Posts
- 115
You should have a look at each missing header file, find the missing function, and :
-find a linux library containing the same function or something close
-recode the particular call to this function.
Regards.


Reply With Quote

