Header Defines

This is a discussion on Header Defines within the Tech Board forums, part of the Community Boards category; Only header defines and nothing but header defines. O_o Yeah, okay, I don't know if I'm being dumb or what, ...

  1. #1
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    3,804

    Header Defines

    Only header defines and nothing but header defines.

    O_o

    Yeah, okay, I don't know if I'm being dumb or what, but I can't figure out how to do this with "Microsoft Visual C++". It may not even be possible; I just assume it is possible.

    [Edit]
    To be more specific, I'm trying to do for "Microsoft Visual C++" this:
    Code:
    g++ -E -undef -dM test.cxx -U __STDC_HOSTED__ -U __cplusplus -U __STDC__>defines.txt
    [/Edit]

    Any help would be appreciated.

    Soma

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,607
    Don't see a "-dM" equivalent.

    There is "/E[P]" and "/u". Then I suppose the defines could be grep'd from the output.

    gg

  3. #3
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    3,804
    O_o

    Yep. It seems as if that is my only option.

    Thanks for taking a look.

    Soma

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Defines, Macros and Header files
    By hnparmar in forum C Programming
    Replies: 4
    Last Post: 03-26-2013, 05:31 PM
  2. Defines and Header file
    By hnparmar in forum C Programming
    Replies: 8
    Last Post: 03-25-2013, 01:47 PM
  3. namepaces and header file defines
    By manav in forum C++ Programming
    Replies: 6
    Last Post: 12-10-2007, 09:09 AM
  4. defines in do ... while
    By gmrobert in forum C Programming
    Replies: 2
    Last Post: 08-30-2007, 10:01 AM
  5. In support of #defines
    By Differ in forum C++ Programming
    Replies: 14
    Last Post: 08-02-2007, 10:34 AM

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