codeblock use, multi-file compilation report XXXX undefined reference to XXX wrong problem

Exercise C ++ classes, use the code much more to .h and .cpp files stored separately code, using Makefile when compiling the code properly on Ubuntu.

Thinking with codeblick easy to write extensions and debugging Han, a compiler error on D: \ 4.Cworkspace \ test1 \ main.cpp | 9 | undefined Reference to `the Add (int, int) '

Almost had to give up the idea of using the IDE can not endure! ! ! ! Four Baidu, finally found a solution to the problem: Debug and release √ fight

Thick outline a note in English, not carefully optimistic about the embarrassment TT

 

 

Guess you like

Origin www.cnblogs.com/huiji12321/p/11546012.html