How to see what g++ command-lines Boost.Build invokes (1.33.1)

孤街醉人 提交于 2019-11-30 05:28:38

问题


I'm scratching my head, trying to figure out why the import libraries are not generated when I build the Boost libraries on my machine. More specifically, building the DLLs works fine, but where I would previously (i.e. before I reinstalled my machine) generate the import libraries correctly.

Some specs:

  • Boost 1.33.1
  • g++ 4.3.3 TDM-1 release for Windows
  • Building with gcc toolset from MS Dos command-line prompt
  • UnxUtils (after 14-04-03)

The command-line that invokes bjam.exe looks like this:

"C:\.../boost_1_33_1/tools/build/jam_src/bin.ntx86/bjam.exe" --debug-configuration -d2 -q --builddir=C:/.../trunk/XTemp/gcc.debug/boost_1_33_1 toolset=gcc threading=multi define=BOOST_WINDOWS define=_GLIBCXX__PTHREADS linkflags=-shared-libgcc runtime-link=shared variant=debug --v2  linkflags=-out-implib=boost_thread.lib

This used to work wonderfully before and produced the desired file boost_thread.lib, but not anymore. I really don't know what's going on and I would like to know exactly what the linker receives on the command-line and what it thinks it should do with it.

Thanks,

Carl


回答1:


The -d2 should give you exactly what you are looking for. I'm surprised it hasn't worked. Perhaps it is hidden in other messages. Try omitting the --debug-configuration and replacing -d2 with -d+2. The latter will print the commands bjam invokes in addition to bjam non-debug messages.



来源:https://stackoverflow.com/questions/1562023/how-to-see-what-g-command-lines-boost-build-invokes-1-33-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!