link static lib in eclipse cdt

后端 未结 3 1783
野性不改
野性不改 2020-12-09 09:17

I am sorry! I have googled this a lot and cannot find an answer! It\'s dumb I know.

I cannot link in static libraries(*.a) in eclipse cdt. I listed them all in Pr

3条回答
  •  没有蜡笔的小新
    2020-12-09 09:59

    I remember having a similar issue way back when I was compiling our code under linux (coming from a windows background) and if I recall correctly specifying the absolute path to the static lib also didn't work.

    Are you aware that to link to "libboost_date_time.a", you need to specify "boost_date_time" without the "lib" and the ".a"? In my case that solved the problem. /usr/local/lib should be on your path in any case AFAIR.

提交回复
热议问题