“undefined reference” error in a very very simple c++ program

后端 未结 2 1562
情深已故
情深已故 2021-01-16 11:47

I have a simple program, which I copied exactly from the example in http://www.learncpp.com/cpp-tutorial/19-header-files/ because I\'m learning how to make c++ programs with

2条回答
  •  生来不讨喜
    2021-01-16 12:25

    Undefined references may happen when having many .c or .cpp sources and some of them is not compiled.

    One good "step-by-step" explanation on how to do it is here

提交回复
热议问题