我正在尝试以使 execgcc
静态链接到的方式进行编译。我认为跑步bjam link=static runtime-link=static
应该可以解决问题?当我尝试时,我收到以下错误,例如:
...failed gcc.link TGT/bin/gcc-4.5.1/debug/link-static/runtime-link-static/datagen...
gcc.compile.c++ TGT/bin/gcc-4.5.1/release/link-static/runtime-link-static/base_data_gen.o
gcc.link TGT/bin/gcc-4.5.1/release/link-static/runtime-link-static/datagen
/usr/bin/ld: cannot find -lstdc++
/usr/bin/ld: cannot find -lm
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
当我跑步时,这些不会出现bjam link=static
。请指教 ?