|
From: .rhavin grobert on 6 May 2008 12:57 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 6 May 2008 13:37 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 6 May 2008 13:44 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 6 May 2008 14:54 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 6 May 2008 16:37 * .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?
|
Next
|
Last
Pages: 1 2 Prev: hi..pointer newbie question. Next: API to get the left mouse state (pressed or not) ? |