
Hi, can anyone help me with building boost using dev-cpp? I'm trying to build boost 1.31.0 with this system, never having used it before. I have Dev-Cpp installed at C:\Program Files\Dev-Cpp, and boost extracted to C:\Code\boost_1_31_0. Using the command line: C:\Code\boost_1_31_0> bjam "-sTOOLS=mingw" "-sMINGW_ROOT_DIRECTORY=c:/progra~1/dev-cpp" install bjam tries to start building various targets, and manages to invoke the compiler, but all compilations fail due to failing to find the standard include files - various manipulations of -sMINGW_INCLUDE_DIRECTORY haven't helped. This is the output of the first compile in the build: -------------------------------------------------------------- c:/progra~1/dev-cpp/bin/\g++ -c -Wall -ftemplate-depth-100 -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG -DBOOST_ALL_DYN_LINK=1 -g -O0 -fno-inline -mno-cygwin -I"bin\boost\libs\date_time\build" -I "C:\Code\boost_1_31_0" -o "bin\boost\libs\date_time\build\boost_date_time.dll\mingw\debug\greg_month.obj" "C:/Code/boost_1_31_0/libs/date_time/build/../src/gregorian/greg_month.cpp" In file included from C:/Code/boost_1_31_0/boost/config.hpp:40, from C:/Code/boost_1_31_0/boost/shared_ptr.hpp:18, from C:/Code/boost_1_31_0/boost/date_time/gregorian/greg_month.hpp:14, from C:/Code/boost_1_31_0/libs/date_time/src/gregorian/greg_month.cpp:14: C:/Code/boost_1_31_0/boost/config/select_stdlib_config.hpp:20:19: utility: No such file or directory In file included from C:/Code/boost_1_31_0/boost/shared_ptr.hpp:27, from C:/Code/boost_1_31_0/boost/date_time/gregorian/greg_month.hpp:14, from C:/Code/boost_1_31_0/libs/date_time/src/gregorian/greg_month.cpp:14: C:/Code/boost_1_31_0/boost/detail/shared_count.hpp:35:61: memory: No such file or directory C:/Code/boost_1_31_0/boost/detail/shared_count.hpp:36:41: functional: No such file or directory C:/Code/boost_1_31_0/boost/detail/shared_count.hpp:37:46: exception: No such file or directory C:/Code/boost_1_31_0/boost/detail/shared_count.hpp:38:46: new: No such file or directory C:/Code/boost_1_31_0/boost/detail/shared_count.hpp:39:61: typeinfo: No such file or directory C:/Code/boost_1_31_0/boost/detail/shared_count.hpp:40:43: cstddef: No such file or directory [ snip ] C:/Code/boost_1_31_0/boost/detail/shared_count.hpp:389: confused by earlier errors, bailing out Executing through .bat file Executing command [cmd.exe] [/Q/C][C:\DOCUME~1\MJV1\LOCALS~1\Temp\jam5712-00.bat] ...failed gcc-C++-action bin\boost\libs\date_time\build\boost_date_time.dll\mingw\debug\greg_month.obj... gcc-C++-action bin\boost\libs\date_time\build\boost_date_time.dll\mingw\debug\greg_weekday.obj -------------------------------------------------------------- I would be happy to supply any output that might be useful in diagnosing my problem. Thanks, Matt ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify mail.administrator@jupiters.com.au **********************************************************************

mvogt@juptech.com:
Using the command line: C:\Code\boost_1_31_0> bjam "-sTOOLS=mingw" "-sMINGW_ROOT_DIRECTORY=c:/progra~1/dev-cpp" install
bjam tries to start building various targets, and manages to invoke the compiler, but all compilations fail due to failing to find the standard include files - various manipulations of -sMINGW_INCLUDE_DIRECTORY haven't helped.
Have you tried backward slashes? (Just a thought.) BTW, you might want to use the --prefix switch to get the built libs and headers in the correct location. Just set it to the same as MINGW_ROOT_DIRECTORY. Here's what works for me, but I'm just using MinGW, not Dev-Cpp (but that's just an IDE around MinGW, right?). set MINGW_ROOT_DIRECTORY=e:\bin\mingw bjam -sTOOLS=mingw --prefix=e:\bin\mingw -sSUFLIB=.a -sSUFDLL=.dll install Kind regards, Daniel Schlyder -- http://bitblaze.com/

Thanks for your reply.
Have you tried backward slashes? (Just a thought.)
Yes, without any noticeable difference.
Just set it to the same as MINGW_ROOT_DIRECTORY. Here's what works for me, but I'm just using MinGW, not Dev-Cpp (but that's just an IDE around MinGW, right?).
I think so, but I can't provide any details; I'm not familiar with the intricacies of the various gcc-on-windows solutions. I would like to be able to say that boost worked wth dev-cpp, though; it's a one-click install, IDE-enabled gcc installation freely available for windows.
set MINGW_ROOT_DIRECTORY=e:\bin\mingw bjam -sTOOLS=mingw --prefix=e:\bin\mingw -sSUFLIB=.a -sSUFDLL=.dll install
I tried this with MINGW_ROOT_DIRECTORY (and --prefix) set to c:\progra~1\dev-cpp", with no effective difference.
Kind regards, Daniel Schlyder -- http://bitblaze.com/
Well, I have managed to build now, so this is really a bug report rather than a plea for help. There were two problems: 1. Setting MINGW_INCLUDE_DIRECTORY does not translate to supplying -isystem include directives to gcc. To make things work I had to hard-code the following into the gcc-c++-acion command: '-isystem "c:/progra~1/dev-cpp/include" -isystem "c:/progra~1/dev-cpp/ include/mingw32"' 2. The name of the archiver is somehow derived from the path. bjam resolved it to "C:\Program Files\Dev-Cpp\bin\ar.exe", which is correct, but is then invoked without escaping, so windows failed to execute it correctly. Should I post this as a bug report somewhere, or will the appropriate people be following this list? Thanks for your help, Matt
participants (3)
-
Daniel Schlyder
-
Matthew Vogt
-
mvogt@juptech.com