所以基本上我有一些非常简单的代码,其中包括<BigIntegerLibrary.hh>驻留在/Users/wen/Projects/include/bigint.我正在编译:
g++ main.cpp -o Main -I/Users/wen/Projects/include/bigint
但它报告了一个致命的错误,它无法找到该文件.我做得对吗?谢谢!
main.cpp:4:10: fatal error: 'BigIntegerLibrary.hh' file not found
尝试
#include "BigIntegerLibrary.hh"
Run Code Online (Sandbox Code Playgroud)
如果使用尖括号()指定#included文件,#include <includeFile.h>编译器将尝试在预定义位置找到它,而如果使用#include "includeFile"编译器,则首先尝试使用编译-I器选项指定的路径.
该-I编译器选项不能用于指定的<...>文件.
| 归档时间: |
|
| 查看次数: |
4003 次 |
| 最近记录: |