GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 13-Sep-2004, 08:20
LaVache LaVache is offline
New Member
 
Join Date: Aug 2004
Posts: 4
LaVache is on a distinguished road

Is there a way to view #include dependancy?


Hi all,

I'd like to know if there is a way in MSVC (6 or dot net) or if there exist a tool to recusively displays which files include which header files... It must exist somewhere right, it's such a useful feature though easy to implement...

Thanks a lot,

LaVache
  #2  
Old 13-Sep-2004, 22:07
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,234
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all
Quote:
Originally Posted by LaVache
Hi all,

I'd like to know if there is a way in MSVC (6 or dot net) or if there exist a tool to recusively displays which files include which header files... It must exist somewhere right, it's such a useful feature though easy to implement...

Thanks a lot,

LaVache
Not to my knowledge. It's fairly easy to write one though.
Open the C-file in question and as you read look for the include lines. If found, recurse passing that file name in and continue. Be sure to keep track of header guards too. MS is not careful about it's headers so you could recurse into oblivion. My program did.
__________________

Cow: You're a lawyer too?
Mooseblood (mosquito): Ma'am, I was already a bloodsucking parasite. All I needed was a briefcase!
  #3  
Old 15-Sep-2004, 09:25
LuciWiz's Avatar
LuciWiz LuciWiz is offline
Moderator
 
Join Date: Jul 2004
Location: Cluj-Napoca (Romania)
Posts: 889
LuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the rough
Quote:
Originally Posted by LaVache
Hi all,

I'd like to know if there is a way in MSVC (6 or dot net) or if there exist a tool to recusively displays which files include which header files... It must exist somewhere right, it's such a useful feature though easy to implement...

Thanks a lot,

LaVache

There is a program that finds module dependecies: http://www.dependencywalker.com/
Not sure if it's suited for your job though, as I've never used it.

Regards,
Luci
__________________
Please read these Guidelines before posting on the forum

"A person who never made a mistake never tried anything new."
Einstein
 
 

Recent GIDBlogFlickr uploads of IA pictures by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What include file should I have? LaVache C Programming Language 2 23-Aug-2004 13:54
Including Maps and strings?? maddie C++ Forum 17 05-Jul-2004 06:25
Cross include BlueTeeth C++ Forum 3 24-Mar-2004 20:37
I can not view my private messages and my signature...is this normal? metamorph GIDForums™ 3 26-Feb-2004 04:41

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 01:03.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.