Boost C++ Libraries: Ticket #10909: Problems with building boost system library using mingw https://svn.boost.org/trac10/ticket/10909 <p> I'm trying to build 'system' library from Boost under Windows using command: </p> <blockquote class="citation"> <p> bjam --toolset=gcc target-os=qnx --build-dir=c:\boost_1_57_0 --build-type=complete --with-system stage </p> </blockquote> <p> and keep getting error: </p> <blockquote class="citation"> <p> C:\boost_1_57_0&gt;bjam --toolset=gcc target-os=qnx --build-dir=c:\boost_1_57_0 --build-type=complete --with-system stage ...found 1 target... ...updating 1 target... config-cache.write c:\boost_1_57_0\boost\bin.v2\project-cache.jam ...updated 1 target... </p> <p> Component configuration: </p> <ul><li>atomic : not building </li><li>chrono : not building </li><li>container : not building </li><li>context : not building </li><li>coroutine : not building </li><li>date_time : not building </li><li>exception : not building </li><li>filesystem : not building </li><li>graph : not building </li><li>graph_parallel : not building </li><li>iostreams : not building </li><li>locale : not building </li><li>log : not building </li><li>math : not building </li><li>mpi : not building </li><li>program_options : not building </li><li>python : not building </li><li>random : not building </li><li>regex : not building </li><li>serialization : not building </li><li>signals : not building </li><li>system : building </li><li>test : not building </li><li>thread : not building </li><li>timer : not building </li><li>wave : not building </li></ul><p> ...found 205 targets... ...updating 4 targets... gcc.link.dll c:\boost_1_57_0\boost\bin.v2\libs\system\build\gcc-mingw-4.8.1\debug\target-os-qnx\threading-multi\libboost_system-mgw48-mt-d-1_57.so.1.57.0 c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -lrt collect2.exe: error: ld returned 1 exit status </p> <blockquote> <p> "g++" -o "c:\boost_1_57_0\boost\bin.v2\libs\system\build\gcc-mingw-4.8.1\debug\target-os-qnx\threading-multi\libboost_system-mgw48-mt-d-1_57.so.1.57.0" </p> </blockquote> <p> -shared -Wl,--start-group "c:\boost_1_57 _0\boost\bin.v2\libs\system\build\gcc-mingw-4.8.1\debug\target-os-qnx\threading-multi\error_code.o" -Wl,-Bstatic -Wl,-Bdynamic -lrt -Wl,--end-group -g -pthread </p> <p> ...failed gcc.link.dll c:\boost_1_57_0\boost\bin.v2\libs\system\build\gcc-mingw-4.8.1\debug\target-os-qnx\threading-multi\libboost_system-mgw48-mt-d-1_57.so.1.57.0... ...skipped &lt;pstage\lib&gt;libboost_system-mgw48-mt-d-1_57.so.1.57.0 for lack of &lt;pc:\boost_1_57_0\boost\bin.v2\libs\system\build\gcc-mingw-4.8.1\debug\target-os-qnx\threading-multi&gt;libboost_system-mgw48- mt-d-1_57.so.1.57.0... gcc.link.dll c:\boost_1_57_0\boost\bin.v2\libs\system\build\gcc-mingw-4.8.1\release\target-os-qnx\threading-multi\libboost_system-mgw48-mt-1_57.so.1.57.0 c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -lrt collect2.exe: error: ld returned 1 exit status </p> <blockquote> <p> "g++" -o "c:\boost_1_57_0\boost\bin.v2\libs\system\build\gcc-mingw-4.8.1\release\target-os-qnx\threading-multi\libboost_system-mgw48-mt-1_57.so.1.57.0" </p> </blockquote> <p> -shared -Wl,--start-group "c:\boost_1_57 _0\boost\bin.v2\libs\system\build\gcc-mingw-4.8.1\release\target-os-qnx\threading-multi\error_code.o" -Wl,-Bstatic -Wl,-Bdynamic -lrt -Wl,--end-group -pthread </p> <p> ...failed gcc.link.dll c:\boost_1_57_0\boost\bin.v2\libs\system\build\gcc-mingw-4.8.1\release\target-os-qnx\threading-multi\libboost_system-mgw48-mt-1_57.so.1.57.0... ...skipped &lt;pstage\lib&gt;libboost_system-mgw48-mt-1_57.so.1.57.0 for lack of &lt;pc:\boost_1_57_0\boost\bin.v2\libs\system\build\gcc-mingw-4.8.1\release\target-os-qnx\threading-multi&gt;libboost_system-mgw48- mt-1_57.so.1.57.0... ...failed updating 2 targets... ...skipped 2 targets... </p> </blockquote> <p> The rt lib seems to be missing, where can I obtain such lib to successfully compile 'system' lib? </p> <p> Changing bootstrap argument between gcc / mingw doesn't help. Before using bootstrap I set path to mingw using: </p> <blockquote class="citation"> <p> set PATH=c:\mingw\bin;%PATH% </p> </blockquote> <p> and change bootstrap.bat in line 38 to: </p> <blockquote class="citation"> <p> set toolset=gcc </p> </blockquote> <p> Any idea how to successfully compile system library under windows for QNX? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10909 Trac 1.4.3