undefined reference to 'func'2023-12-26 14:08:39undefined reference to 'func' 关注这篇文章 https://*.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对于多文件的链接编译有许多问题。 上一篇:解决springboot使用logback日志出现LOG_PATH_IS_UNDEFINED文件夹的问题下一篇:2022.01-1-03 深度学习入门-基于python的理论与实现