473,396 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

BOOST question

I can't get this thing made for the life of me. I've gone through every
step per the Boost website regarding using bjam. Nothing. Can anyone
give any advice or are there pre-made boost hpps for Windows platform?

thanks in advance
seth

Sep 9 '06 #1
5 5359
Seth wrote:
I can't get this thing made for the life of me. I've gone through
every step per the Boost website regarding using bjam. Nothing. Can
anyone give any advice or are there pre-made boost hpps for Windows
platform?
Tell us exactly what you're trying, using which version of VC++, and how
it's not working.

I've built boost dozens of times using VC6 - VC8 and never run into any
serious problems building it while following the build instructions from the
boost website.

-cd
Sep 9 '06 #2
I was not able to get bjam to work. I finally just used nmake on the
regex library and got my build. I'm using VC8, VS2005, and Boost
1.33.1. There's a sample of code I was trying to build that had a
#include <boost\regex.hppline that STILL won't get included.

fatal error C1083: Cannot open include file: 'boost\regex.hpp': No such
file or directory

Thanks for the reply,
seth

Carl Daniel [VC++ MVP] wrote:
Seth wrote:
I can't get this thing made for the life of me. I've gone through
every step per the Boost website regarding using bjam. Nothing. Can
anyone give any advice or are there pre-made boost hpps for Windows
platform?

Tell us exactly what you're trying, using which version of VC++, and how
it's not working.

I've built boost dozens of times using VC6 - VC8 and never run into any
serious problems building it while following the build instructions from the
boost website.

-cd
Sep 12 '06 #3
Seth wrote:
I was not able to get bjam to work. I finally just used nmake on the
regex library and got my build. I'm using VC8, VS2005, and Boost
1.33.1. There's a sample of code I was trying to build that had a
#include <boost\regex.hppline that STILL won't get included.

fatal error C1083: Cannot open include file: 'boost\regex.hpp': No such
file or directory
This has nothing to do with boost. All libraries (like boost, or xerces)
use directory structure in their code for include directive, like:

#include <LibDir/SomeFile.hpp>

What you should do is add the folder in which LibDir is located (i.e.
parent to LibDir) to Additional Include Directories in the C/C++
properties of the project. If LibDir is under the project folder then
add "$(ProjectDir)" in this field.

Another solution is to copy whole library to Microsoft installation
folder (C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include).

And yet another solution would be to put the library wherever you like
and add path to it in Tools Options Projects VC++ Directories, in
the list of Include files. This one is recommended I believe.
Sep 12 '06 #4
Seth schrieb:
I was not able to get bjam to work.
Hi Seth,

just download boost-jam-3.1.13-1-ntx86.zip from
http://sourceforge.net/project/showf...?group_id=7586.
Unpack it and make sure that bjam.exe is in your PATH.

Then, for vc-8.0, issue something like
bjam "-sTOOLS=vc-8_0" install
from the command line.

If your compiler is not in C:\Program Files\Microsoft Visual Studio 8\VC,
you have to set set the -sVC80_ROOT command line switch too.

Good luck,
Christian
Sep 12 '06 #5
Mihajlo,

After programming in a variety of other languages C++ is like learning
to drive a large truck with manual transmission after years of driving
a small sedan with automatic transmission!

Thanks so much for the detailed list of options. I am resolved to
adding C++ to my knowledge base and I appreciate help with the steep
learning curve.

Seth
Mihajlo Cvetanovic wrote:
Seth wrote:
I was not able to get bjam to work. I finally just used nmake on the
regex library and got my build. I'm using VC8, VS2005, and Boost
1.33.1. There's a sample of code I was trying to build that had a
#include <boost\regex.hppline that STILL won't get included.

fatal error C1083: Cannot open include file: 'boost\regex.hpp': No such
file or directory

This has nothing to do with boost. All libraries (like boost, or xerces)
use directory structure in their code for include directive, like:

#include <LibDir/SomeFile.hpp>

What you should do is add the folder in which LibDir is located (i.e.
parent to LibDir) to Additional Include Directories in the C/C++
properties of the project. If LibDir is under the project folder then
add "$(ProjectDir)" in this field.

Another solution is to copy whole library to Microsoft installation
folder (C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include).

And yet another solution would be to put the library wherever you like
and add path to it in Tools Options Projects VC++ Directories, in
the list of Include files. This one is recommended I believe.
Sep 12 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Li Daobing | last post by:
I can't use .def(str(self)) I write a simple example, without `str', I can build it well, but with this one, I can't build //Rational.cpp #include <boost/python.hpp> #include <iostream> ...
65
by: perseus | last post by:
I think that everyone who told me that my question is irrelevant, in particular Mr. David White, is being absolutely ridiculous. Obviously, most of you up here behave like the owners of the C++...
2
by: Richard Latter | last post by:
Hello All, I am a newbie to the Boost library and I have a question about a simple function. All I would like to do is to create a simple function that can test strings using regular...
5
by: SnaiL | last post by:
I've try to compile simple program which uses boost::program_options and got error like this: LINK : fatal error LNK1104: cannot open file 'libboost_program_options-vc7-mt-s-1_32.lib' I was...
7
by: derek.google | last post by:
I hope a Boost question is not too off-topic here. It seems that upgrading to Boost 1.33 broke some old regex code that used to work. I have reduced the problem to this simple example: cout <<...
3
by: Jef Driesen | last post by:
I'm trying to create a graph from an image, where pixel values are regions labels. I have defined my graph to use lists instead of the vectors (because I need to add/remove vertices and edges) and...
85
by: g | last post by:
Hello, is there any library for C as Boost is for C++? thanks in advance,
1
by: Chris Roth | last post by:
I've been working with boost::threads to do some multithreading in my code and have run into some questions that I haven't been able to find answers to. I'll include some sample code to...
1
by: Noah Roberts | last post by:
A while back I posted a question either here or to the boost user list about how to iterate through a vector of strings and perform a lexical cast on them into elements of a tuple. I was working...
2
by: mkvenkit.vc | last post by:
Hello, I hope this is the right place to post a question on Boost. If not, please let me know where I can post this message and I will do so. I am having a strange problem with std::string as...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.