CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2005
    Posts
    41

    about g++ and some defined struct

    what is the search path of g++ in searching paths?
    for example /usr/include/c++/3.2/
    what is all the all teh folders it search ?and how to know them?
    is there a variable having all of it?


    also in codei see some defined struct somewhere..but i want to see the defination of these struct, where is teh header conating it ?
    off_t
    mode_t
    size_t
    uintmax_t

  2. #2
    Join Date
    Mar 2005
    Posts
    13

    Re: about g++ and some defined struct

    To know that which file it is using, you can use "which" command.
    e.g. fire "which g++" and it will let you know the path of g++ binary.
    It will display nothing, if it fails to find g++ binary.

  3. #3
    Join Date
    Jul 2005
    Posts
    41

    Re: about g++ and some defined struct

    i don't want to know the binary teh program use...i want to know teh header files it search..

  4. #4
    Join Date
    Feb 2004
    Location
    Canada
    Posts
    277

    Re: about g++ and some defined struct

    i don't want to know the binary teh program use...i want to know teh header files it search..
    In general you can use grep:

    man grep
    http://www.gnu.org/software/grep/grep.html

    Most standard types (with _t) are appropriatly in sys/types.h.

    Latem
    Being a pessimist is wonderful; you are either proven right, or pleasantly surprised.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured