今天编译一个包含有sqlite3.c的工程时报告
relocation R_X86_64_32 against `‘。rodata' can not be used when making a shared object; recompile with -fPIC
错误。解决方法是:右键Eclipse工程,propertise->c/c++ build->settings->GCC C Compiler->Command:
gcc 后面加上-fPIC,重新编译,解决。
今天编译一个包含有sqlite3.c的工程时报告
relocation R_X86_64_32 against `‘。rodata' can not be used when making a shared object; recompile with -fPIC
错误。解决方法是:右键Eclipse工程,propertise->c/c++ build->settings->GCC C Compiler->Command:
gcc 后面加上-fPIC,重新编译,解决。