gpt4 book ai didi

c++ - 严重错误C1083

转载 作者:行者123 更新时间:2023-12-02 11:09:34 24 4
gpt4 key购买 nike

我收到一个似乎无法解决的编译器错误。是的,我知道这是愚蠢的,但我似乎无法阻止它。我已经在IDE选项的VC++目录中添加了includes。任何帮助将不胜感激。

这是错误:

Error 1 fatal error C1083: Cannot open include file: 'cppunit/TestFixture.h': No such file or directory c:\...\Application\Test.cpp 5

最佳答案

C:\cppunit-1.12.1\cppunit-1.12.1\include\cppunit is where the file is that it's looking for but I thought that I added that in the visual studio options



在这种情况下,这是错误的:
 #include "cppunit/TestFixture.h"

它应该是:
 #include "TestFixture.h"

由于您已经在包含目录设置中指定了路径的“cppunit”部分。

关于c++ - 严重错误C1083,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8182644/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com