Compilation error under Linux Mint 14
Brought to you by:
busson
I got following error:
[ 24%] Building CXX object src/Formats/CHAT/CMakeFiles/agfio_plugin_CHAT.dir/CHATWriter.cpp.o
Linking CXX shared library agfio_plugin_CHAT.so
/usr/bin/ld: ../../Common/libCommon.a(FileInfo.cpp.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
../../Common/libCommon.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [src/Formats/CHAT/agfio_plugin_CHAT.so] Error 1
make[1]: *** [src/Formats/CHAT/CMakeFiles/agfio_plugin_CHAT.dir/all] Error 2
make: *** [all] Error 2
What should I do to correct this?