Thread: compiler question
03-17-2010, 03:07 PM #1
- Member Since
- Mar 17, 2010
I recently started working with XCode. I was curious why programs compiled under xcode do not run when used in a unix environment. For example, when I wrote the Hello World program in Xcode and moved it to my linux machine it would not run. I had to gcc main.c before it would run. I thought the underlying architecture for OS X was unix so I expected ./HelloWorld to run.
Thank you for your help!
03-17-2010, 03:33 PM #2
Unix does not equal Linux. Mac OS X is Unix, Linux is Unix-like. You'll find that despite similiarities, you'll have to recompile programs. Someone with more experience in deploying across OSes can be more clear on that one.
03-17-2010, 11:07 PM #3
- Member Since
- Feb 14, 2004
- Groves, Texas
- 13in macbook - 10.11 --- 21in. iMac 10.11 --- HP win 8
Is your linux machine a PC? If yes that's your main problem right there.
Even if not, like Van said not all *nixes are equal. Also some libraries are machine specific and need to be recompiled for that machine.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By girgroupie47 in forum Switcher HangoutReplies: 6Last Post: 09-20-2009, 11:02 PM
By trooper83 in forum OS X - Development and DarwinReplies: 3Last Post: 05-18-2009, 11:38 AM
By nyzwerewolf in forum OS X - Development and DarwinReplies: 4Last Post: 09-25-2008, 10:43 PM
By belitos in forum OS X - Operating SystemReplies: 6Last Post: 05-05-2008, 12:50 PM
By A.I. BOT in forum OS X - Development and DarwinReplies: 2Last Post: 09-19-2005, 11:00 AM