Cannot build boost with MSVC9

Hi, I read a similar topic on this issue and someone simply mentioned to add some items to user-config.jam, which did not help me. I found 2 user-config.jam files. I wasn't sure which one to edit so I tried them both. The problem still happens. The build process has no problem finding cl.exe, however it states errors like the following: boost/config/no_tr1/utility.hpp(21) : fatal error C1083: Cannot open include file: 'utility': No such file or directory Which means to me that I need to specify the visual studio include directories somewhere, but I'm not sure where. Could someone outline all of the details I need to know to get this working? Where do I add the include paths? Thanks. PS: I'm compiling boost 1.34.1

Robert Dailey <rcdailey <at> gmail.com> writes:
Could someone outline all of the details I need to know to get this working?
Here's a link to some instructions for building boost 1.34.1 using msvc9 (visual studio 2008) http://dave-programming.blogspot.com/2008/02/how-to-build-boost-1341-with-vi... Please let me know if anything in it is unclear. - Dave

On Tue, Mar 4, 2008 at 11:21 AM, Dave Compton <to.dave.c@gmail.com> wrote:
Here's a link to some instructions for building boost 1.34.1 using msvc9 (visual studio 2008)
http://dave-programming.blogspot.com/2008/02/how-to-build-boost-1341-with-vi...
Please let me know if anything in it is unclear.
I applied the patch and ran the batch file in my visual studio installation directory and it did not help. I'm still having the same issue. Do the paths applied by vcvars32.bat affect the global path variable, or does it only last for the current session of the command prompt? The shortcut you instructed to make does not work because Windows Vista does not like spaces in the path after the 'call' instruction, so I had to run the batch file manually. Let me know what I need to do to get this working. Thanks.

On Tue, Mar 4, 2008 at 1:24 PM, Robert Dailey <rcdailey@gmail.com> wrote:
I applied the patch and ran the batch file in my visual studio installation directory and it did not help. I'm still having the same issue. Do the paths applied by vcvars32.bat affect the global path variable, or does it only last for the current session of the command prompt? The shortcut you instructed to make does not work because Windows Vista does not like spaces in the path after the 'call' instruction, so I had to run the batch file manually.
Let me know what I need to do to get this working. Thanks.
Sure enough, that solved the problem. You have to run vsvars32.bat within the same instance of the command prompt that you invoke bjam, or else any changes made to PATH are not persisted. You should mention this in your blog! You should also double check the syntax for that shortcut, it doesn't seem to work either. I went to start >> programs >> accessories >> command prompt, I right click >> send to >> desktop (create shortcut). I tried to modify the "target" of this shortcut with how your blog instructed and it would not work. In any case, thanks for the help.

From: Robert Dailey
On Tue, Mar 4, 2008 at 11:21 AM, Dave Compton <to.dave.c@gmail.com> wrote:
Here's a link to some instructions for building boost 1.34.1 using msvc9 (visual studio 2008)
http://dave-programming.blogspot.com/2008/02/how-to-build-boost-1341-wit h-visual.html
Please let me know if anything in it is unclear.
I applied the patch and ran the batch file in my visual studio installation directory and it did not help. I'm still having the same issue. Do the paths applied by vcvars32.bat affect the global path variable, or does it only last for the current session of the command prompt? The latter.
The shortcut you instructed to make does not work because Windows Vista does not like spaces in the path after the 'call' instruction, so I had to run the batch file manually.
You probably need to surround the path with quotation marks. -- Martin Bonner Senior Software Engineer/Team Leader PI SHURLOK LTD Telephone: +44 1223 441434 / 203894 (direct) Fax: +44 1223 203999 Email: martin.bonner@pi-shurlok.com www.pi-shurlok.com disclaimer
participants (3)
-
Dave Compton
-
Martin Bonner
-
Robert Dailey