今天心血来潮,打算跑一个FFmpeg的项目,突然发现自己的电脑升级到了MAC。以前在WIN上都是用的Vistual Studio IDE,网上搜索了一下,居然Mac版本的Vistual Studio IDE不支持C/C++。

真的受不了Xcode的庞大的体积,可怜的我的磁盘空间啊。也许自己以后会写一个IOS APP,来体验性下Xcode吧。话不多说
直接上图:

编译C和C++的代码一定是需要设置的头文件的位置和link的动态链接库的位置(基本上所有的IDE都需要首先设置这个)。
上图:


设置好就可以愉快的玩耍了。

上面就是Xcode编译C/C++项目需要注意的地方。
网友评论