C Programming on the Mac L40 - Running C Programs in Terminal

preview_player
Показать описание
How to compile and run C programs in Terminal on Mac OS. IMPORTANT: Since our file path is set to the user's home folder by default, these programs will be compiled and saved in your home folder. So you can either change your directory or delete/move the programs that are saved in your home folder.
Рекомендации по теме
Комментарии
Автор

Important Note: Since our file path is set to the user's home folder by default, these programs will be compiled and saved in your home folder. So you can either change your directory or delete/move the programs that are saved in your home folder.

AppleProgramming
Автор

hey checked this out in a forum:
" The most recent version of Xcode (4.3, released a few days ago) is distributed as a standalone application rather than an installation package. It no longer provides command line tools by default. To install the command line tools, you need to open Xcode's preferences, go to the “Downloads” tab, and install them from there."

I did it and it worked!

hectormelesiomandujano
Автор

HOLY SHIT BALLS! ive been looking for this for days! thank you so much

DrEnginerd
Автор

yay!! thanks for this. such a helpful video!!! I'm new to C programming, and I'm so excited to check out the rest of your channel!!

SuperAce
Автор

Remember guys, if you just installed Xcode a few moments ago... you need to install the Command Line Tools in order for Terminal to recognize these terms- here is the path to download that straight from Xcode.

Xcode > Preferences > Downloads > Components > Command Line Tools (Download)

shadow.banned
Автор

Thanks, you can let me know if this still happens in my more recent tutorials :)

AppleProgramming
Автор

I posted that 1 year ago. I've done all of that since (as well as installing Xcode from AppStore first).

Автор

@derekm9292 I know you can zip things from the simulator and send them to someone else and run them. The simulator apps are located in ~/Library/Application Support/iPhone Let me know if that helps you out at all.

AppleProgramming
Автор

g++ won't be there either until you install the XCode stuff. And g++ compiles C++, gcc compiles C.

Автор

Can I also compile code programmatically into a file and then send a url to the terminal to run it? By the way: Awesome tutorials!

nrviognjiocfmbkirdom
Автор

Hey, you use Xcode, whats the difference between Xcode and Jedit (in terms of java, c C++) programming. Thanks!

mabro
Автор

where does it save the executable file once its compiled?

DrEnginerd
Автор

Is the little variable you create destroyed after you run it?

dogdutyascetic
Автор

@DrEnginerd1 My video description should answer that for you ;)

AppleProgramming
Автор

Hey great channel! I am using 10.5 is there any reason why i wouldn't want to run the product compiled in Xcode because i cant install GCC, i need to upgrade my OS 

sumtinelse
Автор

is it possible to get the borland compiler on mac? (bcc32)


tensonam
Автор

Good lord, I prefer using my mbp for programming, but not being able to use bloodshed dev-c running the program straight to the command prompt is quite frustrating!

martti
Автор

Help! I got the message:
iMac:~ ViRa$ gcc -o test
ld: can't open output file for writing: test, errno=13 for architecture x86_64
collect2: ld returned 1 exit status

Mac OS X 10.6.8 Xcode 4.2

vladimirrap
Автор

my terminal says: gcc: command not found. cool..

kindasport
Автор

You must be god or something you just are so amazing i fucking love you

eric_hallstrom
visit shbcf.ru