Share your knowledge at the LQ Wiki.
Go Back > Forums > Other *NIX Forums > Other *NIX
User Name
Other *NIX This forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.


  Search this Thread
Old 01-06-2005, 01:15 PM   #1
paul sachs
LQ Newbie
Registered: Jan 2005
Posts: 2

Rep: Reputation: 0
Porting C++ from HP-UX 11.0 to Linux

I'm trying to estimate the amount of time it will take to port an application of severall hundred thousand lines of C++ code on HP-UX 11.0 to Red Hat Linux version 4. I've experimented with it a little and it seems that most of the differences derive from the fact that Linux supports a more current C++ standard. I would appreciate any insights from anyone that has this or simlar experiences. It would be very useful if there was some documentation of the differences that I could reference.
Old 01-07-2005, 11:17 PM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Red Hat version 4?! That OS dates from about 1997 and is completely obsolete. Are you sure you don't need it ported to something more recent? Is some poor soul actually still running RH4.

In any case, you're correct, since C++ officially standardized fairly recently (1998 IIRC), different implementations had some differences. Nonetheless, if the app uses relatively normal C++, it shouldn't be a huge deal. There's more trouble if the original HPUX program used any HPUX only features that don't exist or work differently in Linux.
Old 01-10-2005, 05:37 PM   #3
paul sachs
LQ Newbie
Registered: Jan 2005
Posts: 2

Original Poster
Rep: Reputation: 0

Thanks for your reply. The actual version reads something like this: "Red Hat Enterprise
Linux WS release 3 (Taroon) 2.4.21-4ELsmp on an i686", while uname -r produces
2.4.21-4ELsmp. I don't know how one would commonly reference the version.

I wrote a 5-line hello world program that required changes to two lines, or a whopping
40% of the program. so I was a little concerned. I needed to change the #include
<xxxx.h> to #include <xxxx> and had to add a namespace declaration for cout to work.
These changes were due mainly to differences in the C++ specifications. So, maybe this
isn't really a Linux/HP-UX question, but a question about the different versions of the C++
standard and doesn't belong in this forum. Do you know where I could find
documentation that details these differences?


- Paul


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
solaris to linux porting vinod_indus Linux - General 3 09-12-2005 10:51 AM
HP-UX to linux porting arunprakash Other *NIX 2 03-01-2005 10:53 PM
Porting linux games amnesty_puppy Linux - General 1 11-01-2004 04:40 PM
Porting c++ code to linux Moons Programming 3 06-03-2004 01:24 AM
Porting to Linux?? 00-00-00 Linux - General 1 05-27-2002 09:20 PM > Forums > Other *NIX Forums > Other *NIX

All times are GMT -5. The time now is 10:22 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration