General Development

Multiple projects, one solution; and Static libs – luke

luke

Member

Posts: 311
From: I use your computer as my second Linux box
Registered: 10-30-2005
Ok; Basically I finished my DX utility library and saved it as a .lib file (static library), then I added another project to my solution (lets call this the test project). So I have the winmain function in my Test project and it tries to include "DXUtil.h" (the main header file for the lib) and I also have DXLib.lib set under my linkers additional dependencies/inputs section but I keep getting the C1083 "DXUtil.h file not found fatal error"... I don't know what Im doing wrong and I would sure hate to lose too much time for the competition to just this stupid formating issue...

------------------
If you can see Chuck Norris, He can see You.
If you Can't see Chuck Norris, you may be seconds away from death.

Jari

Member

Posts: 1471
From: Helsinki, Finland
Registered: 03-11-2005
hmm do you have #include "DXUtil.h" or #include <DXUtil.h> ?

------------------
2Co 7:10 For godly sorrow worketh repentance to salvation not to be repented of: but the sorrow of the world worketh death.

[VoHW] (Help needed) [Blog] - Truedisciple (mp3)

luke

Member

Posts: 311
From: I use your computer as my second Linux box
Registered: 10-30-2005
Of course I do lol.
The error is that it can't *find* the include file "DXUtil.h"

------------------
If you can see Chuck Norris, He can see You.
If you Can't see Chuck Norris, you may be seconds away from death.

[This message has been edited by luke (edited August 30, 2006).]

Briant

Member

Posts: 742
From: Stony Plain, Alberta, Canada
Registered: 01-20-2001
In your project settings (right click on the Test project and choose Properties), go to the C/C++ settings, General section. Make sure the relative path to your DXUtil.h file is in the Additional Include Directories entry.

------------------
Brian

"OOP programmers have a lot of class"

Jari

Member

Posts: 1471
From: Helsinki, Finland
Registered: 03-11-2005
Luke I know But there is a difference between using <> and "". If you use the <> then it will be searched from the "Additional Include Directories" which Mack is talking about.
I could be wrong though, it's been a while.

------------------
2Co 7:10 For godly sorrow worketh repentance to salvation not to be repented of: but the sorrow of the world worketh death.

[VoHW] (Help needed) [Blog] - Truedisciple (mp3)

luke

Member

Posts: 311
From: I use your computer as my second Linux box
Registered: 10-30-2005
Not to sound defensive, but I knew that too . Im goin to school now so I'll look up those settings (Im pretty sure that the error is *somewhere* in the settings) Although, the solution file is is folder x, and my lib and main are two separate projects which are in subfolders of folder x. Do yuou know how to refer to the folder above a certain folder w/o going through C:\Docum... I think it involves /\

------------------
If you can see Chuck Norris, He can see You.
If you Can't see Chuck Norris, you may be seconds away from death.

Briant

Member

Posts: 742
From: Stony Plain, Alberta, Canada
Registered: 01-20-2001
The folder above is "..". So you'll need something like: "..\DXUtil" in your Additional Include Directories.

------------------
Brian

"OOP programmers have a lot of class"
Check out this webhost! Fantastic prices, features and support!

[This message has been edited by BrianT (edited August 31, 2006).]