Static library link [closed]

asked 2014-01-13 10:46:12 -0600

stefanf gravatar image

updated 2014-01-28 17:19:01 -0600

ngrennan gravatar image

I am running a Ubuntu 12.04 64bits fuerte installation. I have an static library from Force Dimension which i'm trying to link using the target_link_libraries(). Rosmake gives the following error over the library that I want to link:

"/usr/bin/ld: /opt/ros/fuerte/lib/libdrd.a(dhdc.o) relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC"

Is there a way to link a static library which is not build using -fPIC?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2016-11-09 13:24:14.644803