1. 程式人生 > >boost庫靜態加載出錯-fPIC

boost庫靜態加載出錯-fPIC

出錯提示如下:

/usr/bin/ld: /home/jking/boost_1_60_0/stage/lib/libboost_date_time.a(greg_month.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC

/home/jking/boost_1_60_0/stage/lib/libboost_date_time.a: could not read symbols: Bad value

修改檔案tools/build/src/tools/gcc.jam