Linux下Eclipse编译时,报recompile with -fPIC错误,解决方法
2012-08-02 14:35
375 查看
今天编译一个包含有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,重新编译,解决。
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,重新编译,解决。
相关文章推荐
- Linux下Eclipse编译时,报recompile with -fPIC错误,解决方法
- linux下编译C++程序出现错误 “*** stack smashing detected ***, eclipse解决方法
- linux下带有CDT的Eclipse的helloworld编译错误的解决方法
- linux下带有CDT的Eclipse的helloworld编译错误的解决方法
- linux内核编译错误 No rule to make target menuconfig解决方法
- cocos2d-x在目录..\Classes添加新类的cpp后,在Eclipse下进行混合编译提示”undefined reference to vtable for 新类“错误的解决方法
- Linux下Eclipse编译错误:make: *** No rule to make target `all'.解决办法
- linux 编译kernel与svn版本冲突解决方法 [drivers/gpu/mali/mali/common/mali_kernel_core.o] 错误 1
- linux 编译kernel与svn版本冲突解决方法 [drivers/gpu/mali/mali/common/mali_kernel_core.o] 错误 1
- 编译PlatinumKit出现的arm-linux-androideabi-g++: not found错误解决方法
- Linux下编译PHP常见错误及解决方法
- 64bit ubuntu14.04编译PlatinumKit出现的arm-linux-androideabi-g++: not found错误解决方法
- eclipse编译openwrt应用程序报Type undefined reference to `pthread_create'错误解决方法
- linux-2.6.32内核 linux-fusion-8.1.1编译错误解决方法
- Eclipse之NDK编译——常见错误的解决方法记录
- iscsitarget 在Linux2.6.32内核上编译 若干编译错误与解决方法(备忘)
- Linux 下 Eclipse编译找不到so库文件的解决方法
- linux 编译段错误解决方法
- Linux_ubuntu环境下Qt无法编译代码显示-1: error: cannot find -lGL错误的解决方法
- 在VMware上编译linux内核出现VFS: Cannot open root device "LABEL=/" or unknown-block(0,0) 错误的解决方法