小弟以前是做产品经理的,最近转行学开发了 C的基础 和 linux下面C开发 也学了点。
以后打算做linux下C开发这一块。不知道这一块目前怎么样。
还有 就是都是跟着书敲代码,开发环境 就是一个虚拟机centos6.5 里面用VIM 写代码 然后 make编译运行 VIM 也没装任何插件。 GDB也处于半懂不懂的状态。
想问一下 各位前辈 一般工作中 大家工作环境都是什么样的呢?
PHP中文网2017-04-17 15:28:26
C/C++ development using Qt Creator on Linux
Qt Creator supports Chinese, the startup speed is faster than Eclipse and Netbeans, and the interface is more beautiful.
You can use Qt Creator as a code editor and as a vim assistant. The advantage is that Qt Creator can automatically parse projects to form friendly and fast smart prompts, and you can also use the gdb front-end in Qt Creator (pictured above) and The valgrind front-end (high-definition large picture) debugs and analyzes the project, but the Makefile needs to be written by yourself or generated with autotools. This should be familiar to students who use vim for programming. I almost forgot that you can enter VIM editing mode (FakeVim) by pressing the Alt+V shortcut key twice in succession, which should be very attractive to vim users. Of course, Qt Creator supports mainstream version control systems such as git/hg/svn by default.
You can also use Qt Creator as an IDE, which can be a lightweight alternative to heavyweight IDEs such as Eclipse CDT and Netbeans for C++. You can create a new non-Qt project automatically built using CMake directly in the Qt Creator wizard, which means you don't have to write the Makefile yourself. You just need to "execute CMake" in Qt Creator and it will be automatically generated. Of course, you can also import a make-built project into Qt Creator for compilation and debugging, such as Nginx.
Install the base system build toolkit:
sudo apt-get -y install build-essential gdb valgrind cmake
Download the latest version of binary Qt Creator (it is recommended to use the 2.8 series Qt Creator based on Qt4, which is better compatible with the Fcitx input method):
http://mirrors.ustc.edu.cn/qtproject/official_releases /qtcreator/2.8/2.8.1/
You don’t need to do GUI programming, you don’t need to install Qt SDK, and there is no qmake and related Qt development libraries. You just need to download the 60M Qt Creator. For example, I downloaded:
qt-creator-linux -x86_64-opensource-2.8.1.run
Give execution permission after downloading, run and select the installation directory to install. You can install it in your own home directory.
天蓬老师2017-04-17 15:28:26
Qt Creator and CLion are the tools closest to the development experience on Windows
But I recommend using Qt Creator. There is an open source free version, and it runs fast and has been tested for a long time.
If you also develop interface programs If so, the Qt library is also a very good choice.
And qmake is relatively more friendly to novices than CMake.
If you have not used jetbrains software before, I do not recommend CLion. CLion is certainly powerful,
but because it is based on Java, it does not feel as smooth as QT Creator. (I am I5 + 8G + SSD)
PHP中文网2017-04-17 15:28:26
I personally like to use Qt, and it is very convenient to use C and C++ with the mingw compiler and GDB debugger. This IDE is not limited to this, you can also use it to build cross-platform GUI programs.
PHPz2017-04-17 15:28:26
For C, Vim is the best. Of course, you need to copy a better configuration.
I have never used Clion, but it is produced by JetBrain and must be a good product - provided your machine is powerful enough.
黄舟2017-04-17 15:28:26
The embedded people around me use VIM the most, and some also use codeblocks. I heard that Clion is very popular now.
I work at the upper level, and I feel that atom and sublime are not impossible //This sentence can be ignored