Operating System - HP-UX
1828622 Members
1575 Online
109983 Solutions
New Discussion

Program doesn't want to execute

 
SOLVED
Go to solution
Daniel Fourie
Frequent Advisor

Program doesn't want to execute

I have written some C++ application's on my Linux macines with the standard libary's. So I copied it over to my HP-UX11 system and now I can't execute it there even if I change the permissions to execute.

Can someone please tell me why this happens and how to fix it.

Regards
Daniel
Knowlage is Power
7 REPLIES 7
Rainer von Bongartz
Honored Contributor
Solution

Re: Program doesn't want to execute

You cant't run binaries from a LINUX (I guess INTEL Hardware based) box on you HP (PA RISC Hardware)
They are not compatibel.

You need to re-compile the application on HP/UX and re-try.

Reagrds
rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
T. M. Louah
Esteemed Contributor

Re: Program doesn't want to execute

Moreover, STL on LINUX will be different on HP-UX because even when the sources are the same, preprocessor changes the code that is compiled and you always end up with different code
compiled (gcc vs. aCC).
The Compilers are different, there are different headers in /usr/include,
... You have no chance to compile the same thing the same way on your two targets.
G'd luck
t++


Little learning is dangerous!
Suhas_3
Advisor

Re: Program doesn't want to execute

Linux and HP-UX are not binary compatible with each other. You have to bring the source code to HP-UX and complie program to create executable binary on HP-UX
G. Vrijhoeven
Honored Contributor

Re: Program doesn't want to execute

Hi,

If you need to install CC;
It can be found on a applications CD.

Gideon
Daniel Fourie
Frequent Advisor

Re: Program doesn't want to execute

Where can I find this CC compiler, cause the one I have got executes with cc and this one is only for ANSI-C not C++
Knowlage is Power
G. Vrijhoeven
Honored Contributor

Re: Program doesn't want to execute

G. Vrijhoeven
Honored Contributor