Loading

undefined reference to 'func'

undefined reference to 'func'

关注这篇文章 https://stackoverflow.com/questions/12573816/what-is-an-undefined-reference-unresolved-external-symbol-error-and-how-do-i-fix

其次,使用终端进行编译,而不是使用像vscode这样的编辑器。例如:

g++ a.h a.cpp b.h b.cpp

vscode对于多文件的链接编译有许多问题。

posted @ 2021-11-13 09:49  通用代码技术  阅读(67)  评论(0编辑  收藏  举报