Included file not found during compile time.

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2005
Posts: 109
Reputation: complete is an unknown quantity at this point 
Solved Threads: 0
complete's Avatar
complete complete is offline Offline
Junior Poster

Included file not found during compile time.

 
1
  #1
Sep 14th, 2006
Included file not found during compile time.

This must be an easy question for you to answer.

I have a header file (basetsd.h) that is located in the
C:\Program Files\Microsooft Visual Studio\VC98\Include
directory.

Where do I set the path to this header file? I don't want to hard code it in my cpp file (which is what the last programmer who worked on this project did).
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,607
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1490
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Included file not found during compile time.

 
0
  #2
Sep 14th, 2006
If you are using VC++ 6.0 compiler the path should already be set. Look in menu Tools --> Options --> Directories -->Include Files. There you will find the path. If it isn't there then you need to put it there. Should have been set during the compiler's install, but maybe you accidentially deleted it.
Last edited by Ancient Dragon; Sep 14th, 2006 at 4:47 pm.
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 236
Reputation: FireSBurnsmuP is an unknown quantity at this point 
Solved Threads: 1
FireSBurnsmuP's Avatar
FireSBurnsmuP FireSBurnsmuP is offline Offline
Posting Whiz in Training

Re: Included file not found during compile time.

 
1
  #3
Sep 16th, 2006
just in case, you might wanna try either adding or subtracting the ".h"'s in your include's. that helps, but if you are used to that compiler, then ignore me. (I constantly am forced to switch b/w VS2k5 and Dev-C++)
Reply With Quote Quick reply to this message  
Join Date: Nov 2005
Posts: 251
Reputation: dwks has a spectacular aura about dwks has a spectacular aura about 
Solved Threads: 25
dwks's Avatar
dwks dwks is offline Offline
Posting Whiz in Training

Re: Included file not found during compile time.

 
1
  #4
Sep 17th, 2006
basetsd.h isn't a standard header file, as you can find out by googling it. Therefore dropping the .h wouldn't help much; only the standard C++ header files have no extension. Of course, you're free to call the header basetsd without a .h; but there's no reason to believe that the programmer did so.

Both of the compilers you mentioned should support no-.h standard C++ header files.
dwk

Seek and ye shall find.

"Only those who will risk going too far can possibly find out how far one can go."
-- TS Eliot.

"I have not failed. I've just found 10,000 ways that won't work."
-- Thomas Alva Edison

"The only real mistake is the one from which we learn nothing."
-- John Powell
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 236
Reputation: FireSBurnsmuP is an unknown quantity at this point 
Solved Threads: 1
FireSBurnsmuP's Avatar
FireSBurnsmuP FireSBurnsmuP is offline Offline
Posting Whiz in Training

Re: Included file not found during compile time.

 
1
  #5
Sep 21st, 2006
actually, Dev requires the .h's sometimes, so it confuses me every once in a while...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC