Find the answer to your Linux question:
Results 1 to 3 of 3
Is there any sort of utility that can automatically tell me where a header file is from a makefile and my path variables? I am trying to move a software ...
  1. #1
    Just Joined!
    Join Date
    Jul 2007
    Posts
    2

    Automatically find headers from makefile?

    Is there any sort of utility that can automatically tell me where a header file is from a makefile and my path variables? I am trying to move a software project from one machine to another. It builds on machine A but can't find some headers on machine B. This is in a networked environment so the headers machine A is using are probably accessible from machine B... I just need to figure out what path it is missing. Machine A obviously knows where the headers are because gcc is able to build, but I have had no luck finding them by hand (and the networked AFS space is so large it would take weeks or months to use find). Any suggestions? Thanks,
    Ia3n

  2. #2
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    Try the -I option.

    A useful link:

    Search Path - The C Preprocessor


    Regards

  3. #3
    Just Joined!
    Join Date
    Jul 2007
    Posts
    2
    I don't think you quite understood what I'm asking. The -I options are set correctly on at least one of my machines. From those -I options, I would like to be able to find the actual header file. To manually check each of the paths would take forever. What I am hoping for is a utility that, given my working -I options, will do the same thing gcc does, and then instead of compiling my program, tell me where my headers actually are.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...