| 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. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-06-2005, 01:15 PM
|
#1
|
|
LQ Newbie
Registered: Jan 2005
Posts: 2
Rep:
|
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.
|
|
|
|
01-07-2005, 11:17 PM
|
#2
|
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 3,824
Rep: 
|
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.
|
|
|
|
01-10-2005, 05:37 PM
|
#3
|
|
LQ Newbie
Registered: Jan 2005
Posts: 2
Original Poster
Rep:
|
btmiller,
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?
Thanks,
- Paul
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:25 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|