Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22248

Header absolute paths for GCC

$
0
0

I am looking to print a list of absolute paths to a specific header file used by gccwithout compiling anything (or specifying a particular compile target, like with gcc -M). E.g., the following would print a list of absolute paths with all matches for limits.h found in the appropriate directories:

gcc <flag/command> limits.h

A (non-)solution that returns only working header files is to simply create a check.c, #include all desired header names there, and run gcc -M check.c.

Another solution, (albeit using bash stuff) is found in this answer and here.


Related questions that didn't quite have what I want:


Viewing all articles
Browse latest Browse all 22248

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>