Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
全部:
我在 Eclipse 工作区中有一个主项目和一个静态库项目。我终于让这两个项目编译并运行没有错误。现在,我添加了一些 CMake 文件来使用 CMake 构建所有项目,我收到以下重复符号错误:
这些错误中的任何一个对任何人都有意义吗?
谢谢你。
从你的问题来看,这个问题非常模糊。一种解决方案是您可能在标头 .cpp 而不是 .h 文件中包含包含文件。如果是这样,请将cpp替换为h,问题将得到解决。