|
Boost Users : |
From: Martin Fuchs (yg-boost-users_at_[hidden])
Date: 2003-06-04 15:06:54
Hi Rob,
> I'm trying to use jam in place of nmake under VC6. The interesting thing
> is, I'm trying to use the VC7.1 compiler (I hate the new IDE).
>
> The problem is that the Path environment is hijacked by VC6 and replaced
> with its own idea of what the world should look like (i.e. VC6 paths).
Yes, the VC6 IDE sets its own paths for executeables, include, and library
directories. You could configure them in the menu item "Tools" - "Options".
In the dialog then go to the tab page "Directories". But this would change
the paths for any project you are using.
Why don't you use NMAKE _and_ jam in conjunction with the IDE? You can
create a "Makefile" project in the IDE, which just calls NMAKE. In this way
you can define your paths to the VC7 build environent in a Makefile:
> MSDEV = C:\Program Files\Microsoft Visual Studio .NET 2003
> MSVC = $(MSDEV)\VC7
> CPP = "$(MSVC)\bin\cl"
> IDE = $(MSDEV)\COMMON7\IDE
> PATH = $(IDE);$(PATH)
> INCLUDE = $(MSVC)\Include
As target in the makefile you can define some thing like:
main:
bjam -f Jamfile
Or yet another way - use a batch file, which defines the environment
variables you need and call jam in it. You can define this batch file as
"Build command line" in the project settings dialog. The IDE is very
flexible. :-)
Yours,
Martin
-- Martin Fuchs martin-fuchs_at_[hidden]
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net