From: .rhavin grobert on
i was unable to find some usefull information at microsoft.com, but
perhap someone here known a URL...


im looking for a list of preprocessor-switches and in special a switch
that gives me list of includes, because i have some kind of non-
trivial circle-includes in my include-files and i'd like to see, if i
compile foo.cpp for example, _what_ files are included in _which_
order.

TIA, .rhavin;)
From: ChrisN on
On Tue, 6 May 2008 09:57:35 -0700 (PDT), ".rhavin grobert"
<clqrq(a)yahoo.de> wrote:

>i was unable to find some usefull information at microsoft.com, but
>perhap someone here known a URL...
>
>
>im looking for a list of preprocessor-switches and in special a switch
>that gives me list of includes, because i have some kind of non-
>trivial circle-includes in my include-files and i'd like to see, if i
>compile foo.cpp for example, _what_ files are included in _which_
>order.
>
>TIA, .rhavin;)

The compiler swtches for VC6 are documented here:

http://msdn.microsoft.com/en-gb/library/aa236704(VS.60).aspx

As far as I can tell, there isn't a switch that will do exactly what
you're asking.

A utility you may find useful is doxygen, which can produce graphs of
#include dependencies:

http://www.doxygen.org

You'll also need to install Graphviz:

http://www.graphviz.org

I hope this helps,

Chris
From: Doug Harrison [MVP] on
On Tue, 6 May 2008 09:57:35 -0700 (PDT), ".rhavin grobert" <clqrq(a)yahoo.de>
wrote:

>i was unable to find some usefull information at microsoft.com, but
>perhap someone here known a URL...
>
>
>im looking for a list of preprocessor-switches and in special a switch
>that gives me list of includes, because i have some kind of non-
>trivial circle-includes in my include-files and i'd like to see, if i
>compile foo.cpp for example, _what_ files are included in _which_
>order.

In VC6, I'm afraid you're limited to using /I and processing the #line
directives with perhaps Perl. In later versions, you can use the
/showincludes option.

--
Doug Harrison
Visual C++ MVP
From: .rhavin grobert on
On 6 Mai, 19:37, ChrisN <chrisn...(a)nospam.googlemail.com> wrote:
> On Tue, 6 May 2008 09:57:35 -0700 (PDT), ".rhavin grobert"
>
> <cl...(a)yahoo.de> wrote:
> >i was unable to find some usefull information at microsoft.com, but
> >perhap someone here known a URL...
>
> >im looking for a list of preprocessor-switches and in special a switch
> >that gives me list of includes, because i have some kind of non-
> >trivial circle-includes in my include-files and i'd like to see, if i
> >compile foo.cpp for example, _what_ files are included in _which_
> >order.
> >TIA, .rhavin;)

> The compiler swtches for VC6 are documented here:
> http://msdn.microsoft.com/en-gb/library/aa236704(VS.60).aspx
> As far as I can tell, there isn't a switch that will do exactly what
> you're asking.
> A utility you may find useful is doxygen, which can produce graphs of
> #include dependencies:
> http://www.doxygen.org
> You'll also need to install Graphviz:
> http://www.graphviz.org
> I hope this helps,
> Chris

thx for the hint, i'll give it a try...
From: Alf P. Steinbach on
* .rhavin grobert:
> On 6 Mai, 19:37, ChrisN <chrisn...(a)nospam.googlemail.com> wrote:
>> On Tue, 6 May 2008 09:57:35 -0700 (PDT), ".rhavin grobert"
>>
>> <cl...(a)yahoo.de> wrote:
>>> i was unable to find some usefull information at microsoft.com, but
>>> perhap someone here known a URL...
>>> im looking for a list of preprocessor-switches and in special a switch
>>> that gives me list of includes, because i have some kind of non-
>>> trivial circle-includes in my include-files and i'd like to see, if i
>>> compile foo.cpp for example, _what_ files are included in _which_
>>> order.
>>> TIA, .rhavin;)
>
>> The compiler swtches for VC6 are documented here:
>> http://msdn.microsoft.com/en-gb/library/aa236704(VS.60).aspx
>> As far as I can tell, there isn't a switch that will do exactly what
>> you're asking.
>> A utility you may find useful is doxygen, which can produce graphs of
>> #include dependencies:
>> http://www.doxygen.org
>> You'll also need to install Graphviz:
>> http://www.graphviz.org
>> I hope this helps,
>> Chris
>
> thx for the hint, i'll give it a try...

Hm, there are undocumented switches. E.g. "-o" for output spec, as with other
compilers... So perhaps the now documented "/showIncludes" existed but was
undocumented with VC6?

Just a thought.

Anyway, it's generally a good idea to upgrade to a more standard-conformant
compiler, e.g. a later version of MSVC.


Cheers, & hth.,

- Alf

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?