Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 26, 2005, 01:41 PM   #1
silencejinn
macrumors newbie
 
Join Date: Feb 2005
xcode help

hi, i just installed xcode on my pb, i try to compile a c code, it worked. but i do not know how to run that ".out" file on my terminal.
need help from all you guys.
thanks a lot
ps:any xcode learning website suggest?
silencejinn is offline   0 Reply With Quote
Old Feb 26, 2005, 01:44 PM   #2
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
do an ls -l to make sure it's executable (look for x in the user permissions). Assuming it is type ./<name of file>.out (you need the ./ as the current directory is not normally in your PATH). Note that it is normal to rename the compiled executable to not have the .out extension!

If the file is not executable do chmod u+x <name of file>
robbieduncan is offline   0 Reply With Quote
Old Feb 26, 2005, 02:05 PM   #3
silencejinn
Thread Starter
macrumors newbie
 
Join Date: Feb 2005
still no good

the file is executable and i have the permission. but how to change the name?
i tried just use "a", it doesn't work. what should i do?
thanks
silencejinn is offline   0 Reply With Quote
Old Feb 26, 2005, 02:11 PM   #4
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
You seem very uncomfortable with the command line! Use the Finder to change the name, or type mv <full name> <new name> the full name includes all extensions (i.e. mv a.out mygreatprogram).
robbieduncan is offline   0 Reply With Quote
Old Feb 26, 2005, 06:49 PM   #5
devman
macrumors 65816
 
devman's Avatar
 
Join Date: Apr 2004
Location: AU
Quote:
Originally Posted by silencejinn
hi, i just installed xcode on my pb, i try to compile a c code, it worked. but i do not know how to run that ".out" file on my terminal.
need help from all you guys.
thanks a lot
ps:any xcode learning website suggest?
Sure, try the tour here.

http://developer.apple.com/documenta...our/index.html
devman is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
The App Store app thinks Xcode is installed, but I deleted Xcode. moonman239 Mac Applications and Mac App Store 3 May 6, 2014 05:53 PM
Moving from xcode 3.2 to xcode 4.5.2 compilation error for 'abs' macro in stdlib.h hrishidev Mac Programming 7 Jun 2, 2013 10:36 AM
Xcode 4.5 iNeedAnsurs iPhone 0 Jan 25, 2013 02:49 PM
Xcode 3 vs Xcode 4 when dealing with Objective-C timebourne Mac Programming 8 Sep 23, 2012 05:36 PM
XCode 4.4.1 to Xcode 4.5 in Mountain Lion VinegarTasters OS X 10.8 Mountain Lion 2 Sep 19, 2012 08:55 PM

Forum Jump

All times are GMT -5. The time now is 12:35 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC