New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

compiler question


Post Reply New Thread Subscribe

 
Thread Tools
alphaace

 
Member Since: Mar 17, 2010
Posts: 3
alphaace is on a distinguished road

alphaace is offline
Hello,

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!
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,352
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
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.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
cradom

 
cradom's Avatar
 
Member Since: Feb 14, 2004
Location: Nederland, Texas
Posts: 3,476
cradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant future
Mac Specs: 13in macbook - 10.10.1

cradom is offline
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.
QUOTE Thanks

Post Reply New Thread Subscribe


« Beginner C++ question | How does mail work in UNIX/BSD »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
The QUESTION Game ToddG Schweb's Lounge 159 08-15-2007 06:25 PM
Boot-Up Question Mark Folder Impending Doom Question. bingwalker OS X - Operating System 3 07-10-2007 06:19 AM
Ask 'me' a question... eric Schweb's Lounge 22 01-12-2007 07:33 AM
Video production question macinsandiego Movies and Video 4 11-17-2004 08:39 AM
Postscript question battleangel444 OS X - Operating System 2 07-09-2004 01:45 PM

All times are GMT -4. The time now is 09:02 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?