Find the answer to your Linux question:
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.
  1. #1
    Just 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.
    Attached Files Attached Files
    • File Type: txt 2.txt (11.8 KB, 3 views)
    • File Type: txt 1.txt (7.6 KB, 3 views)

  2. #2
    Linux Newbie
    Join Date
    Aug 2006
    Posts
    124
    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 :

    Code:
    #!/bin/bash
    cat 1.txt | while read a ; do
    b=`basename $a`
    echo `find / -iname '$b'` >> 1_new.txt
    done
    And then you'll need solving the differences between the 2 compilers, and between the versions of header files.

  3. #3
    Just Joined!
    Join Date
    Jan 2013
    Posts
    2

    Thanks

    Thanks Captain,

    But some headerfiles doesn't exist on the linux machine for those header files what should we do.

    I am attaching the list of files and makefile that is used. In this we are creating static or shared library.


    Quote Originally Posted by CaptainDangeax View Post
    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 :

    Code:
    #!/bin/bash
    cat 1.txt | while read a ; do
    b=`basename $a`
    echo `find / -iname '$b'` >> 1_new.txt
    done
    And then you'll need solving the differences between the 2 compilers, and between the versions of header files.
    Attached Files Attached Files

  4. #4
    Linux Newbie
    Join Date
    Aug 2006
    Posts
    124
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •