Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
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

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

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Help Needed - Xcode 4 Options: Use Core Data Include Unit Tests Mitch1984 iPhone/iPad Programming 3 Feb 26, 2011 03:42 PM
Need Xcode Help! Buly34 Mac Programming 3 Feb 17, 2011 06:03 AM
Xcode help. edge540 Macintosh Computers 5 Mar 31, 2005 02:30 PM
Xcode help, setting an NSTabViewItem outlet FredAkbar Mac Applications and Mac App Store 4 Aug 21, 2004 11:03 AM
Carbon and XCode ?!! help.. are they compatible with the earlier versions ? macroy Mac Applications and Mac App Store 5 Jul 8, 2004 12:38 PM


All times are GMT -5. The time now is 05:14 AM.

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

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