relocation R_X86_64_32 against `.rodata' can not be used when making a shared object;

vs2015+vc_linux編譯Linux下動態庫文件*.so時,報錯 relocation R_X86_64_32 against `.rodata’ can not be used when making a shared object;。 原因是某些gcc編譯器默認沒有加 -fpic; 解決方法:vs-linux項目中的屬性中添加 -fpic
相關文章
相關標籤/搜索