FS#49437 - [gcc] cannot find header with -isystem /usr/include
Attached to Project:
Arch Linux
Opened by Yuxin Wu (ppwwyyxx) - Sunday, 22 May 2016, 18:45 GMT
Last edited by Antonio Rojas (arojas) - Sunday, 22 May 2016, 19:22 GMT
Opened by Yuxin Wu (ppwwyyxx) - Sunday, 22 May 2016, 18:45 GMT
Last edited by Antonio Rojas (arojas) - Sunday, 22 May 2016, 19:22 GMT
|
Details
The following code:
#include <cstdlib> int main() { } does not compile with `g++ a.cpp -isystem /usr/include`: In file included from a.cpp:4:0: /usr/include/c++/6.1.1/cstdlib:75:25: fatal error: stdlib.h: No such file or directory #include_next <stdlib.h> ^ compilation terminated. Although I know the flag is not useful at all. But why should this happen? |
This task depends upon
Closed by Antonio Rojas (arojas)
Sunday, 22 May 2016, 19:22 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#49313
Sunday, 22 May 2016, 19:22 GMT
Reason for closing: Duplicate
Additional comments about closing: