Eclipse CDT Introduce the C/C ++ project built by Makefile
- Author: Liu Da Poechant (Zhong Chao)
- mailbox: zhongchao.ustc# gmail.com (#-> @)
- Blog:Blog.CSDN.net/Poechant
- Date: june 30th, 2012
I am Eclipse CDT, which is used on Mac OS X. Linux and Windows are similar. Generally, they are only different positions of Preference.
- File -> New -> Makefile Project with Existing Code
- Select the source code directory, and select the C language of the language. If it is a Linux environment, select Linux GCC, Mac environment is selected for MacOSX GCC, and Eclipse under Windows can choose mingw GCC.
- Project-> Make Target-> Create, create two targets two TARGETs.
- Select the ALL of the newly established project in Make Target to build the project
- After the construction is over, RUN-> Debug As-> Local C/C ++ Application-> GDB/MI, the debugging option can be set in the debug configuration.
Among them, the difference between GDB/mi and GDB searches the following explanations on the Internet:
gdb and gdb/mi are essentially the same, except that gdb/mi lets you
select the MI protocol version and command set to use (MI - or Machine
Interface - is how Eclipse communicates with gdb, rather than using
the normal gdb command-line interface). This is useful if you want to
do something not supported by the defaults, or have a non-standard gdb,
such as used on Mac OS X. gdbserver is a very lightweight debug server
used for debugging embedded systems. **The normal gdb/mi commands are
used, but gdb must be told to connect to a gdbserver running on a remote
system.** There's an extra tab for specifying this information.
Reference:
- http://dev.eclipse.org/mhonarc/lists/photran/msg00926.html
- http://blog.csdn.net/kevin_zqw/article/details/6927151
–
Seven Sea Connected Team Club App official website:http://whatsclub.cn(Club app, the interest club/community of young people)
–
Reprinted, please indicate CSDN from Liu Da (Zhong Chao):Blog.CSDN.net/Poechant
–
–
Seven Sea Interconnection Team Club App official website:http://whatsclub.cn(Club app, the interest club/community of young people)