Re: BOOST question

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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.hpp> line 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.

.



Relevant Pages

  • compile fail as regular user but ok as root on linux
    ... I compile my java programs with tomcat & axis successfully as root on ... I setup myself with sudo privilege but compiling them as regular (non- ... If you ever happen to want to link against installed libraries ... - add LIBDIR to the `LD_LIBRARY_PATH' environment variable ...
    (comp.lang.java.programmer)
  • Re: naive newbie questions (i warned you)
    ... freaky runtime libraries. ... to lower-level programming languages. ... learning low-level programming and don't mind spending ten years ...
    (rec.games.roguelike.development)
  • Re: Problems reversing strings
    ... >Then I show them a library function that does the work. ... >that learning a language is often more a job of learning the libraries. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Recommendations for JavaScript drop-down menu code
    ... ever managed to create a genuinely cross-browser script then ... necessary to spend time learning how to use many libraries. ... Nobody is saying 'write it all yourself', though it is obviously a good idea to know how to write it all yourself because without that it is impossible to judge the stuff that comes off other people's shelves, and eventually there will be something needed that does not currently exist at all. ...
    (comp.lang.javascript)
  • Re: Correct C++ tutorial part 5 "How to use libraries" available (Windows, mingw/msvc/std)
    ... > learn how to drive a car before learning to design one. ... > start with learning how to modify the engine to support faster driving? ... explain which shops sell cars, where to find them, how to purchase ... just provide the libraries already built and ready-to-go for download, ...
    (comp.lang.cpp)