PDA

View Full Version : xcode help




silencejinn
Feb 26, 2005, 01:41 PM
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?



robbieduncan
Feb 26, 2005, 01:44 PM
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>

silencejinn
Feb 26, 2005, 02:05 PM
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

robbieduncan
Feb 26, 2005, 02:11 PM
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).

devman
Feb 26, 2005, 06:49 PM
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/documentation/DeveloperTools/Conceptual/XcodeQuickTour/index.html