开发者

C and C++ programming on MacBook [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve 开发者_运维技巧this question? Update the question so it focuses on one problem only by editing this post.

Closed 2 years ago.

Improve this question

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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜