how to set include path for boost library



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)

.



Relevant Pages

  • ANNOUNCE: libsupp 1.0 for DJGPP 2.03 and 2.04 uploaded.
    ... This is a support library for DJGPP 2.04 and 2.03. ... places of your DJGPP installation tree. ... The output of the test program ist stored ... Compile it with a command like this: ...
    (comp.os.msdos.djgpp)
  • Re: ANNOUNCE: libsupp 1.0 for DJGPP 2.03 and 2.04 uploaded.
    ... This is a support library for DJGPP 2.04 and 2.03. ... places of your DJGPP installation tree. ... successfully build then the test program in the /tests directory is ... Compile it with a command like this: ...
    (comp.os.msdos.djgpp)
  • Re: glib20
    ... *** Could not run GLIB test program, ... *** The test program failed to compile or link. ... *** exact error that occured. ... *** Could not run ORBIT test program, ...
    (freebsd-questions)
  • How do I Compile from command line instead of inside Visual C++ 2005?
    ... Now my question is can I compile from the command line? ... I tried going to the directory where my test program "testsdk.cpp" ... Windows NT 5.0 and Windows 98 features. ... For this release when WINVER is defined as 0x0500 or greater, ...
    (microsoft.public.vc.ide_general)
  • Re: Problem using Ada.Text_IO.Modular_IO
    ... However, when compile my little test program, ... with the GNAT 4.3.1 on a 32bit Ubuntu-Linux machine. ... I guess that this is a bug. ...
    (comp.lang.ada)