Using defines to specify an include path
- From: "Sean" <sjustice_II@xxxxxxxxx>
- Date: 24 Jul 2005 11:10:46 -0700
Hi,
I am one of 6 developers working on this C++ project. We have recently
moved our GUI development to VC++ 7.1.xxxx (we're using several
versions, the lowest being 7.1.4322).
Were using common libraries and DLLs that part of the team develops.
These interdependencies are causing problems such as
"UnitConverter/include/UnitConverter.h" not found, or unable to find
"UnitConverter/lib/UnitConverted.lib". Each one of us has placed the
libraries and includes in the most logical place for that person. We
then specify that location using "Additional Include Dirs" in the
properties page for the project. But this only works partially. When I
open the project that developer X has been working on, I get errors
because he has placed our common libs and includes in a directory
different from mine.
My question is is there a better way to specify the root directory
where the .lib and .h's are?
In the Solaris world, we used to define a variable in the makefile. For
example, I share my libraries with others because we work on those, so
my root dir is a network drive:
f:/shared/VRT/beta1.6.2/.
under this there are several sub-projects each with an include and a
lib dir.
Developer X chooses to keep a more stable version of these libs on his
local D: drive under:
d:/VRT/1.6.0/.
this will have the sub-projects that I keep under my F: drive, except
an older version.
In Solaris using g++ and make, we'd have done this:
LIB_ROOT_DIR=d:/VRT/1.6.0/.
INCLUDEPATH=$LIB_ROOT_DIR/UnitConverter/include;$LIB_ROOT_DIR/CommonDefs/include
.... etc...
LIBPATH=$LIB_ROOT_DIR/UnitConverter/lib;$LIB_ROOT_DIR/CommonDefs/lib
.... etc...
Each developer can now easily change the LIB_ROOT_DIR to suit his PC's
configuration.
Can someone suggest a VC++ 7.1 equivalent?
Thank u!
.
- Prev by Date: Re: Embed a confugeration file inside exeutable
- Next by Date: Re: Editor font
- Previous by thread: Embed a confugeration file inside exeutable
- Next by thread: Visual C++ 5.0 and displaying Chinese font at program time
- Index(es):
Relevant Pages
|