![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Porting DHCP from Linux to VxWorks | Sunny Shivam | IP Networking | 2 | 05-01-2008 09:44 PM |
| when porting from HP-UX to Linux | amitpansuria | Linux | 1 | 04-17-2008 11:08 PM |
| Porting linux ftpd code to Aix | srksn | UNIX for Advanced & Expert Users | 2 | 08-17-2007 01:54 AM |
| HP-UX to linux porting | arunprakash | UNIX for Dummies Questions & Answers | 0 | 02-21-2005 02:49 AM |
| Porting Win32 application into Linux | Sergeyy | High Level Programming | 0 | 06-23-2003 04:15 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Porting From Linux To Hpux
Gents,
i'm a senior applications developer and need to port a Linux server application ( no additional / special libraries or unique header files ) to a HPUX enviroment. Any chance to compile it on the Linux using flags to create an HPUX binary with gcc? Last edited by anak0nda; 10-31-2007 at 01:21 PM. Reason: wrong |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Quote:
What version of HPUX? I use both gcc and HPUX's cc/aCC compilers on Itanium2, PA-RISC 1.1 and PA-RISC 2.0 running HP-UX 11.11 in both 32bit and 64bit mode and they both do the job well. Do you need help with the compiler options? |
|
#3
|
|||
|
|||
|
This is a:
UP_UX B.11.0 U 9000/800 system, it is really trivial application but as usualy do not run on HPUX box. I've tried to do the 'cc' but it fails with plenty of errors... |
|
#4
|
|||
|
|||
|
Quote:
(b) does it assume certain include files? (c) is it using "gcc" pragmas? (d) does it compile on Linux with "-Wall -Werror", if not, fix those firsts. |
|
#5
|
|||
|
|||
|
well..
linux compiles it well with -Wall -Werror HPUX drops for example: error 1002: unexpected character "//comment here" |
|
#6
|
|||
|
|||
|
Not suprising, that's a C++ comment in a C source file.
I suggest you strip the C++ comments out of the source. Just because gcc/g++ accepts it, does not make it ANSI C. |
|
#7
|
|||
|
|||
|
Ok i'll work on the code to make it 'clear' and come back to you with the latest results..
|
|||
| Google The UNIX and Linux Forums |