最近刚开始看有些C++开源项目的源代码,发现很多项目都是用makefile来进行编译的。
我之前主要写java,所以对C++开发环境不是很了解,在mac上,有哪些IDE能够做到对makefile项目很好的支持?
(比如自动提示什么的)
可能是写java习惯了,习惯了IDEA,Eclipse强大的补齐功能,在mac上有哪些工具呢?
CLion目前只支持cmake,好遗憾。。。xcode导入项目后自动补齐功能好像没有生效(当然可能是我自己的问题)。
有哪些mac下的IDE支持makefile的项目,又或者,你们平时的开发环境是如何配置的?
ringa_lee2017-04-17 14:34:06
Using Qt Creator on Unix for C/C++ development
Qt Creator GDB debugging front-end (debugging Nginx):
Qt Creator Valgrind memory analysis front-end (analyzing Nginx) Memory):
Free and open source, ready to unzip, only an installation package of over 60 MB.
Ubuntu/ Debian installation base system build kit: sudo apt-get -y install build-essential gdb valgrind cmake
How to check the Linux C/C++ programming manual
Search online to check the man manual (such as checking epoll and vector):
site:man7.org epoll
site:cplusplus.com vector
阿神2017-04-17 14:34:06
You can try clion, which is produced by jetbrains like IDEA. It is very convenient to use cmake as the build system
PHPz2017-04-17 14:34:06
Generally, writing Makefiles for larger programs may be difficult, so there are corresponding build systems to assist, common ones: autotool
, cmake
. When choosing an IDE, you should consider what build systems it supports. If you are using a build system and a handwritten Makefile, then it doesn't matter, just go with it. I don’t use an IDE for C language development, and vim seems to be enough.