在codeblocks中编译C++,出现undefined reference to的问题,是因为没有将该项目中所有的文件编译,解决方法如下:
1.右击项目名称,选择properties;
2.选择Build targets;
3.将Build targets files中的所有文件都勾选上,就可以解决这个问题。
在codeblocks中编译C++,出现undefined reference to的问题
最新推荐文章于 2023-09-09 10:11:32 发布
在codeblocks中编译C++,出现undefined reference to的问题,是因为没有将该项目中所有的文件编译,解决方法如下:
1.右击项目名称,选择properties;
2.选择Build targets;
3.将Build targets files中的所有文件都勾选上,就可以解决这个问题。