By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,795 Members | 1,666 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,795 IT Pros & Developers. It's quick & easy.

VC++ include/library custom directory settings?

P: n/a
Hi,

I've used VC++ 6 for my previous C++ work and am having a little trouble
acclimating to VS .Net 2003, mainly in establishing where to look for
additional header and library files. I'm creating a console app and need to
include a few custom headers, as well as a library file, from my hard drive.
I've
used .Net 2003 for C# projects often enough, but never C++.

Should I go to Project--->Properties, choose the Linker folder, then
manually add the directory with my .lib file in the "Additional Library
Directories" section of the property page? Or is there a better way to do
it? I'm used to seeing a list of directories and adding mine at the bottom,
with up and down arrows that allow me to choose the order of the directories
for the linker to search in. VC++ old-timers know what I'm referring to.
Is the way I outlined above the standard procedure for doing this now?

That's for linking. I'm not sure how to add new include directories. There
is an "Additional Include Directories" section in the general C++ property
page, which looks similar to the linker's section. But I don't see how I
can arrange the order of the include directories after adding my own.

So, general confusion all around. If you could point me in the right
direction I'd appreciate it. Thanks.

Feb 6 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hello Jim,
Should I go to Project--->Properties, choose the Linker folder, then
manually add the directory with my .lib file in the "Additional Library
Directories" section of the property page? Or is there a better way to do
it? I'm used to seeing a list of directories and adding mine at the
bottom,
with up and down arrows that allow me to choose the order of the
directories
for the linker to search in. VC++ old-timers know what I'm referring to.
Is the way I outlined above the standard procedure for doing this now?
You can either do it like you described, in the poject settings, or you can
select
tools->options, then select projects->VC++ directories
and configure the different directories.
Doing it in tools makes it global to all solutions and projects.
Personally i prefer to set those things in the project properties, because
then
they become part of the project, and you don't need to reconfigure them if
you reinstall your pc.
It also makes it easier if someone else wants to compile your project
(assuming they installed the different SDKs in the same folder of course)
That's for linking. I'm not sure how to add new include directories.
There
is an "Additional Include Directories" section in the general C++ property
page, which looks similar to the linker's section. But I don't see how I
can arrange the order of the include directories after adding my own.

The same story goes for include folders if you click in the 'Additional
Include Directories'
field in you project properties, you'll see a small button with 3 '.'s.
If you click that, you'll get a dialog box with a list in which you can edit
the include paths and their order.

--

Kind regards,
Bruno.
br**********************@hotmail.com
Remove only "_nos_pam"
Feb 6 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.