include path

This is a discussion on include path within the Linux Programming forums, part of the Platform Specific Boards category; I want to see the path that is searched by gcc to find header files. I tried echo $C_INCLUDE_PATH echo ...

  1. #1
    Registered User
    Join Date
    Sep 2012
    Posts
    5

    include path

    I want to see the path that is searched by gcc to find header files.
    I tried echo $C_INCLUDE_PATH
    echo $CPLUS_INCLUDE_PATH but the output is blank...

  2. #2
    Registered User
    Join Date
    May 2010
    Posts
    2,560
    Try asking gcc to tell you it's search paths, like: "gcc -print-search-dirs" .


    Jim

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Where to include path of header files in Visual Studio
    By emmagood in forum C++ Programming
    Replies: 15
    Last Post: 05-16-2012, 11:53 PM
  2. Does #include indirectly include the source file too?
    By Lord Asriel in forum C Programming
    Replies: 10
    Last Post: 11-30-2011, 07:20 AM
  3. Replies: 1
    Last Post: 11-06-2011, 05:20 PM
  4. header path & include
    By dontoo in forum C++ Programming
    Replies: 3
    Last Post: 02-19-2010, 04:40 AM
  5. changing the gcc standard include search path
    By RoshanX in forum Linux Programming
    Replies: 1
    Last Post: 01-01-2007, 08:23 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21