今天編譯一個包含有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,重新編譯,解決。