Boost logo

Boost Users :

From: Jeff Garland (jeff_at_[hidden])
Date: 2004-06-27 16:19:04


On Sun, 27 Jun 2004 22:00:21 +0100 (BST), kinshuk srivastava wrote
> Hi
>
> I have installed the boost 1.31.0 and have been trying
> to compile the test examples that were there in the
> regular expression library.But the compiler isnt able
> to identify the header files.So I did include the path
> during my compilation by using the -I and the path
> name..However it is still inable to compile as it is
> unable to include or search the indented header
> files...

Based on the option, I'll assume you are using a command line compiler like
gcc. So you will need to do something like:

g++ -I PATH_TO_BOOST/boost_1_31_0 file_to_compile.cpp -LPATH_TO_REGEX_LIBRARY
-l boost_regex-gcc-d-1_31

Also, regex is a compile library so you will need the to link against the
library. If you haven't already you might want to read:

http://www.boost.org/more/getting_started.html

> This is my first time I have been using this kind of
> library.Can someone suggest a way so that I can start
> using the library.Is there a way in which I can
> directly compile nad run the files without having to
> go through the ordeal of specifying the path at
> compile time everytime I wanna use the file

I'm afraid you are going to specify include path in all compiles. Good news
is that you only need to put the top boost directy even if you are using
several libraries. Normally a makefile is the ticket for doing this...

HTH,

Jeff


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