Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linux Compilied prog not running on Sun 1

Status
Not open for further replies.

TheMillionDollarMan

Programmer
Jun 10, 2002
132
0
0
US
I want to compile my C program on linux and then run it on Sun Solaris. I created a small + basic application that is just a hello world app but doesn't work.

I forgot the error message but it was something like can't run yourapp.o

any sugestions?

Thanks
 
You can't run a program compiled in the other system (in any language). For example, a program calls run-time library routines but its different things in different implementations. As usually they are different for implementations of the same language on the same platform and you can't link 'imported' object modules.
The only exception is if you have cross-platform compiler.
 
Arkm, thanks for your input. So somehow I will need to compile AND run this application on Sun.
 
> So somehow I will need to compile AND run this application on Sun.
The usual way is to run a C compiler on the machine where you want to run the code.

Then you copy your source code to the Sun, compile and you're all set.

--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top