我是新手,非常困惑。
我的编译器是g ++(Ubuntu 4.8.4-2ubuntu1〜14.04.4)4.8.4。该程序在Visual Studio中执行。
我不知道我的问题是什么。
我的命令是:
g ++ -Wall -std = c ++ 11 Book.h Book.cpp Customer.h Customer.cpp Library.h Library.cpp Main.cpp -o Main
Main.cpp:1:15: fatal error: Set: No existe el archivo o el directorio
#include <Set>
^
compilation terminated.
答案 0 :(得分:1)
编译器会发出一条错误消息,告知您找不到要包含在程序中的文件,并标记以下行:
#include <Set>
如果要使用std :: set容器,则需要包括如下声明:
#include <set>
您的操作系统似乎区分大小写(“ S”与“ s”不同)。路径解析过程中的大小写感知和敏感性取决于操作系统。