Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie question

Status
Not open for further replies.

DerrickP

MIS
Feb 14, 2004
1
US
Just started a C++ class after taking a C class. Now I'm having trouble adding units(.cpp + .h) in C++ professional. I simply select new unit in my project and wrote the require code for the header and implementation file. Unfortunately, when I try to run it I get "Unable to open include file 'XXXX.h' " error for my tets main. I'm seeing all the required files in the same directories created by Professional. Does I need to place these in other dirs? Sorry about the basic question, thanks in advance.
 
A few points to consider off the top of my head:

- Is the header file syntax correct ?
- Is the file naming correct ?
- Have you added the source code file to the project ?
- Does the project know where to find any required include or library files ?

Hope this helps.

-----------------------------------
Wisdom doesn't always come with age. Sometimes age comes alone.
(you're never too old to learn)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top