X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "soft wind" Newsgroups: comp.os.msdos.djgpp Subject: how to set include path for boost library Date: 29 Jan 2006 03:20:27 -0800 Organization: http://groups.google.com Lines: 57 Message-ID: <1138533627.825371.41320@z14g2000cwz.googlegroups.com> NNTP-Posting-Host: 221.42.216.33 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1138533632 16408 127.0.0.1 (29 Jan 2006 11:20:32 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Sun, 29 Jan 2006 11:20:32 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse AT google DOT com Injection-Info: z14g2000cwz.googlegroups.com; posting-host=221.42.216.33; posting-account=nWGCcg0AAABtigiVN3cR-tq-DKIIlX2n To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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 #include #include #include 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)