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
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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 

Loading...