简体   繁体   中英

I can't compile boost - can't find *.o file

I'm trying to compile Boost libraries. I'm typing

bootstrap.bat gcc

which completes succesfully, then

b2 install --prefix=c:/Tools/boost toolset=gcc variant=release

And I receive bunch of errors:

"g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pedantic -mthreads -Wno-variadic-macros -DBOOST_ALL_NO_LIB=1 -DBOOST_ALL_NO_LIB=1,<python>2.7,<target-os>windows:<python.interpreter>C:\Python27\python -DBOOST_CHRONO_STATIC_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_TIMER_STATIC_LINK=1 -DNDEBUG  -I"." -c -o "bin.v2\libs\test\build\gcc-mingw-4.9.2\release\link-static\threading-multi\unit_test_parameters.o" "libs\test\src\unit_test_parameters.cpp"

...failed gcc.compile.c++ bin.v2\libs\test\build\gcc-mingw-4.9.2\release\link-static\threading-multi\unit_test_parameters.o...
gcc.compile.c++ bin.v2\libs\test\build\gcc-mingw-4.9.2\release\link-static\threading-multi\xml_log_formatter.o
File can't be found.

about like every file and nothing gets compiled. Shouldn't o files be created while building? What can be the problem?

Have you tried adding the prefix parameter to the bootstrap call, not the b2 invocation? Typically, that is information already needed when setting up the build environment (which is what bootstrap does).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM