Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Win10+VS2022+CMake3.26编译失败 #227

Open
Mr-Z2001 opened this issue May 21, 2023 · 0 comments
Open

Win10+VS2022+CMake3.26编译失败 #227

Mr-Z2001 opened this issue May 21, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Mr-Z2001
Copy link

QPanda

基本信息

  • QPanda 版本:2.1.16
  • 操作系统:Win10

Bug是什么?

在VS2022下无法编译,提示找不到系统库的一些内容。
其中一条报错信息:(直接复制的VS的报错)
Severity Code Description Project File Line Suppression State
Error G4BAEFBA8 'condition_variable' in namespace 'std' does not name a type D:\DevPack\QPanda-2\build\x64-Release\QPanda-2 D:\DevPack\QPanda-2\ThirdParty\antlr4\runtime\src\support\CPPUtils.h 69

点开源文件,所有的#include #include 之类的都会标红

复现Bug的步骤?

建议的解决方案

VS2022中没有CMAKE选项卡了,取而代之的是Build(没记错的话是《生成》)选项卡。这个选项卡里有BuildAll和Install。我的理解是先Build再Install,但是在Build这一步失败了。按照我的理解,iostream之类的东西不用写进CMakeLists.txt中。希望能给出一个解决方案,感谢。

@Mr-Z2001 Mr-Z2001 added the bug Something isn't working label May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant