VC++ include/library custom directory settings?

J

Jim Bancroft

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.
 
B

Bruno van Dooren

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.
(e-mail address removed)
Remove only "_nos_pam"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top