boost compile problem using dev-cpp 4.9.8.5
Hi Everyone, Please help!!!! I am trying to compile boost library with dev-cpp. It does not compile and gives many errors. I can use the filesystem library as it does not require pre compilation. But I want to use regex and test suite library. Boost.Python error is fine. But other library also do not compile. I have followed the documentation and set the enviroment variables to C:\projects\boost> C:\projects\boost>set path=c:\dev-cpp\bin C:\projects\boost>set MINGW_ROOT_DIRECTORY=c:\dev-cpp C:\projects\boost>set MINGW_BIN_DIRECTORY=c:\dev-cpp\bin C:\projects\boost>set MINGW_INCLUDE_DIRECTORY=c:\dev-cpp\include C:\projects\boost>set MINGW_STDLIB_DIRECTORY=c:\dev-cpp\lib I receive more than 3000 lines in error some of them are attached: --------------------------------------------------------------------- skipping Boost.Python library build due to missing or incorrect configuration couldn't find Python.h in "c:/tools/python/include" You can configure the location of your python installation by setting: PYTHON_ROOT - currently "c:/tools/python" PYTHON_VERSION - The 2-part python Major.Minor version number (e.g. "2.2", NOT "2.2.1") - currently "2.2" The following are automatically configured from PYTHON_ROOT if not otherwise set: PYTHON_LIB_PATH - path to Python library object; currently "c:/tools/python/libs" --------------------------------------------------------------------- ...found 5655 targets... ...updating 558 targets... gcc-C++-action bin\boost\libs\date_time\build\boost_date_time.dll\mingw\debug\greg_month .obj c:\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:\projects\boost" -I "c:\dev-cpp\include" -o "bin\boost\libs\date_time\build\boost_date_time.dll\mingw\debug\greg_mont h.obj" "C:/projects/boost/libs/date_time/build/../src/gregorian/greg_month.cpp" ...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_week day.obj c:\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:\projects\boost" -I "c:\dev-cpp\include" -o "bin\boost\libs\date_time\build\boost_date_time.dll\mingw\debug\greg_week day.obj" "C:/projects/boost/libs/date_time/build/../src/gregorian/greg_weekday.cpp" ...failed gcc-C++-action bin\boost\libs\date_time\build\boost_date_time.dll\mingw\debug\greg_week day.obj... gcc-C++-action bin\boost\libs\date_time\build\boost_date_time.dll\mingw\debug\date_gener ators.obj c:\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:\projects\boost" -I "c:\dev-cpp\include" -o "bin\boost\libs\date_time\build\boost_date_time.dll\mingw\debug\date_gener ators.obj" "C:/projects/boost/libs/date_time/build/../src/gregorian/date_generators.cpp" ...failed gcc-C++-action Thanks with best regards, Vikrant
"Vikrant Rathore"
bin\boost\libs\date_time\build\boost_date_time.dll\mingw\debug\greg_month .obj
c:\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:\projects\boost" -I "c:\dev-cpp\include" -o "bin\boost\libs\date_time\build\boost_date_time.dll\mingw\debug\greg_mont h.obj" "C:/projects/boost/libs/date_time/build/../src/gregorian/greg_month.cpp"
...failed gcc-C++-action
That's really the only error message you get, with no complaint issued from gcc itself? What happens when you invoke the g++ command shown above from the command prompt? -- Dave Abrahams Boost Consulting www.boost-consulting.com
Hi Dave, Thanks for the reponse. Even when I invoke the command from the command prompt it throws error and it seems it can not find the header files for c++. I have tried every way including defining the location of the header file in INCLUDES. It throws following errors when i type the same command on command prompt. C:\projects\boost>c:\dev-cpp\bin\g++ -c -Wall -ftemplate-depth-100 - DBOOST_DA TE_TIME_POSIX_TIME_STD_CONFIG -DBOOST_ALL_DYN_LINK=1 -g - O0 -fno-inline -mno-cy gwin -I"bin\boost\libs\date_time\build" -I "C:\projects\boost" -I "c:\dev-cpp \include" -o "bin\boost\libs\date_time\build\boost_date_time.dll\mingw\debug\gr eg_month.obj" "C:/projects/boost/libs/date_time/build/../src/gregorian/greg_mon th.cpp" In file included from C:/projects/boost/boost/config.hpp:40, from C:/projects/boost/boost/shared_ptr.hpp:18, from C:/projects/boost/boost/date_time/gregorian/greg_month.hpp :14, from C:/projects/boost/libs/date_time/src/gregorian/greg_month. cpp:14: C:/projects/boost/boost/config/select_stdlib_config.hpp:20:19: utility: No such file or directory In file included from C:/projects/boost/boost/shared_ptr.hpp:27, from C:/projects/boost/boost/date_time/gregorian/greg_month.hpp :14, from C:/projects/boost/libs/date_time/src/gregorian/greg_month. cpp:14: C:/projects/boost/boost/detail/shared_count.hpp:35:61: memory: No such file or d irectory C:/projects/boost/boost/detail/shared_count.hpp:36:41: functional: No such file or directory C:/projects/boost/boost/detail/shared_count.hpp:37:46: exception: No such file o r directory C:/projects/boost/boost/detail/shared_count.hpp:38:46: new: No such file or dire ctory C:/projects/boost/boost/detail/shared_count.hpp:39:61: typeinfo: No such file or directory C:/projects/boost/boost/detail/shared_count.hpp:40:43: cstddef: No such file or directory In file included from C:/projects/boost/boost/shared_ptr.hpp:27, from C:/projects/boost/boost/date_time/gregorian/greg_month.hpp :14, from C:/projects/boost/libs/date_time/src/gregorian/greg_month. cpp:14: C:/projects/boost/boost/detail/shared_count.hpp:74: `exception' is not a class or namespace C:/projects/boost/boost/detail/shared_count.hpp: In member function `virtual void* boost::detail::sp_counted_base_impl
::get_deleter(const std::type_info&)': C:/projects/boost/boost/detail/shared_count.hpp:270: must #include <typeinfo> before using typeid C:/projects/boost/boost/detail/shared_count.hpp: At global scope: C:/projects/boost/boost/detail/shared_count.hpp:367: parse error before `<' token C:/projects/boost/boost/detail/shared_count.hpp:378: ISO C++ forbids defining types within return type C:/projects/boost/boost/detail/shared_count.hpp:378: destructors must be member functions C:/projects/boost/boost/detail/shared_count.hpp:378: return type specification for destructor invalid C:/projects/boost/boost/detail/shared_count.hpp: In function `void boost::detail::shared_count()': C:/projects/boost/boost/detail/shared_count.hpp:379: `pi_' undeclared (first use this function) C:/projects/boost/boost/detail/shared_count.hpp:379: (Each undeclared identifier is reported only once for each function it appears in.) C:/projects/boost/boost/detail/shared_count.hpp: At global scope: C:/projects/boost/boost/detail/shared_count.hpp:385: parse error before `const' C:/projects/boost/boost/detail/shared_count.hpp:385: ISO C++ forbids declaration of `shared_count' with no type C:/projects/boost/boost/detail/shared_count.hpp: In function `int boost::detail::shared_count(...)': C:/projects/boost/boost/detail/shared_count.hpp:385: `r' undeclared (first use this function) C:/projects/boost/boost/detail/shared_count.hpp:389: only constructors take base initializers C:/projects/boost/boost/detail/shared_count.hpp:389: confused by earlier errors, bailing out On 2 Feb 2004 at 7:37, David Abrahams wrote:
"Vikrant Rathore"
writes: bin\boost\libs\date_time\build\boost_date_time.dll\mingw\debug\greg_ month .obj
c:\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:\projects\boost" -I "c:\dev-cpp\include" -o "bin\boost\libs\date_time\build\boost_date_time.dll\mingw\debug\greg _mont h.obj" "C:/projects/boost/libs/date_time/build/../src/gregorian/greg_month. cpp"
...failed gcc-C++-action
That's really the only error message you get, with no complaint issued from gcc itself?
What happens when you invoke the g++ command shown above from the command prompt?
-- Dave Abrahams Boost Consulting www.boost-consulting.com
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Also adding to my last mail. I have all those header files in c:\dev-cpp\include\c++ I can find all of them. I can compile other C++ programs without errors. But it throws error when I try to build boost or regex library. On 2 Feb 2004 at 7:37, David Abrahams wrote:
"Vikrant Rathore"
writes: bin\boost\libs\date_time\build\boost_date_time.dll\mingw\debug\greg_ month .obj
c:\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:\projects\boost" -I "c:\dev-cpp\include" -o "bin\boost\libs\date_time\build\boost_date_time.dll\mingw\debug\greg _mont h.obj" "C:/projects/boost/libs/date_time/build/../src/gregorian/greg_month. cpp"
...failed gcc-C++-action
That's really the only error message you get, with no complaint issued from gcc itself?
What happens when you invoke the g++ command shown above from the command prompt?
-- Dave Abrahams Boost Consulting www.boost-consulting.com
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Also adding to my last mail. I have all those header files in c:\dev-cpp\include\c++
I can find all of them. I can compile other C++ programs without errors. But it throws error when I try to build boost or regex library.
Whatever the issue is, it's an issue with your compiler setup - we don't do anything that would cause system headers not to be found. (As an aside, I've never managed to get the dev-cpp command line working either), for now I would just create a static lib project in your IDE, add the regex source files (libs/regex/src/*.cpp) and build the lib you are interested in from there. John.
Well followed your suggestion and made a static library. But it still gives an error. This time when I use regex library in the application it just gives a message "This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information." Thanks for your help. On 3 Feb 2004 at 11:48, John Maddock wrote:
Also adding to my last mail. I have all those header files in c:\dev-cpp\include\c++
I can find all of them. I can compile other C++ programs without errors. But it throws error when I try to build boost or regex library.
Whatever the issue is, it's an issue with your compiler setup - we don't do anything that would cause system headers not to be found. (As an aside, I've never managed to get the dev-cpp command line working either), for now I would just create a static lib project in your IDE, add the regex source files (libs/regex/src/*.cpp) and build the lib you are interested in from there.
John.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
David Abrahams
-
John Maddock
-
Vikrant Rathore