gpt4 book ai didi

c++ - bvector.h fatal error 没有这样的文件或目录

转载 作者:行者123 更新时间:2023-11-27 22:54:23 25 4
gpt4 key购买 nike

我使用的程序包含以下 header :

#include <iostream>
#include <bvector.h>
#include "eclat.h"

但是在构建时它会给出这样的信息:

g++ -O3 -c enumerate.cpp
enumerate.cpp:2:21: fatal error: bvector.h: Aucun fichier ou dossier de ce type compilation terminated.
Makefile:22: recipe for target 'enumerate.o' failed make: *** [enumerate.o] Error 1

如果我将 bvector.h 更改为 vector,代码将无法运行并产生更多错误。

最佳答案

bvector.h 不是标准的 C++ 头文件。 '< >' 语法虽然包含 header ,但仅适用于标准 header 文件。

例如,stdio.h 将包含为 #include <stdio.h>在程序中。如果 bvector.h 是您的头文件,您可以包含使用“”语法,如 #include "bvector.h" .

来源:CPP Reference

关于c++ - bvector.h fatal error 没有这样的文件或目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34464454/

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