how to set include path for boost library
- From: "soft wind" <soft_wind@xxxxxxxxx>
- Date: 29 Jan 2006 03:20:27 -0800
Hi there !
I have used djgpp (gxx v3.4.3). This time, I update to v4.0.1 and
install boost library (v1.33.1). When I compile a test program using
lambda header file, it shows error message "boost/lambda/lambda.hpp :
NO such file". But I did modifty djgpp.env to add boost include path
for CPLUS_INCLUDE_PATH. How can I fix the problem ?
I modified CPLUS_INCLUDE_PATH in djgpp.env like this :
CPLUS_INCLUDE_PATH=%/>;CPLUS_INCLUDE_PATH%%DJDIR%/lang/cxx;%DJDIR%/include;C:/Boost/include/boost-1_33_1
But it fails.
When I copy all the files and directories from
C:\Boost\include\boost-1_33_1\boost to C:\djgpp\include\boost to check
whether boost library itself is all right, it compiles successfully. So
boost library seems to be configured successfully but environment
setting in djgpp seems to be wrong.
The boost library is configured at:
C:\Boost\include\boost-1_33_1\boost
For example, lambda.hpp is located at
C:\Boost\include\boost-1_33_1\boost\lambda\lambda.hpp
The test program is as follows:
---------------- lambda.cpp -------------------------
#include <iostream>
#include <ostream>
#include <algorithm>
#include <boost/lambda/lambda.hpp>
int main()
{
using namespace std;
using namespace boost::lambda;
int v[ ] = { -25, -15, 0, 25, 15 };
for_each( v , v + 5, ( cout << _1 << ' ') );
cout << endl;
for_each( v , v + 5, ( _1 += 10) );
cout << endl;
for_each( v , v + 5, ( cout << _1 << ' ') );
cout << endl;
return 0;
}
----------------------------------------------------------------------------
The command line is as follows :
gxx lambda.cpp
Thanks in advance.
Soft wind (Japan)
.
- Prev by Date: Re: Questions about the DJGPP compiler
- Next by Date: Weekly Mini-FAQ post for DJGPP
- Previous by thread: Re: Waba for dos
- Next by thread: A very rough snprintf for DJGPP.
- Index(es):
Relevant Pages
|