I recently bought a macbook and was wondering if I can write C and C++ programs on mac without having to install anything more. Say for Java, mac came with a preinstalled version.
Is it the same for C/C++. if yes, can you pls let me know hoe to compile and run a sample program or if not, can you please let me know what stuff to download?
You need to install the Mac Developer Tools either from your original Mac OS X disk or by downloading the latest version . This package includes the GCC compiler collection (supporting the C and C++ languages, amongst others).
You need to install the developer tools, which are on your MacBook DVD. Check for custom installations.
You should install Apple Developers Tools .
Basically you should get a (free) developer account and then download Xcode.
Unfortunately, starting with Xcode 4, Apple is charging 5$ for the download. So you could either decide to pay this, or download the previous version (Xcode 3)
The main page for Xcode is this . There you will find links to Xcode 4 and Xcode 3 (search within the page)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.