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.
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.
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?
|All times are GMT -5. The time now is 06:39 AM.|