Couldn't compile my plugin to .so
#3

I found:

g++ -O2 -shared -w -o LyricsPlugin.so -I./ -I./amx/ -DLINUX *.cpp

but when i use it it wrote:

/usr/bin/ld: /tmp/ccTSiCDY.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/tmp/ccTSiCDY.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
Reply


Messages In This Thread
Error: Cannot dynamically load executable - by LukasLyrics - 28.03.2014, 21:22
AW: Couldn't compile my plugin to .so - by Mellnik - 28.03.2014, 22:06
Re: Couldn't compile my plugin to .so - by LukasLyrics - 28.03.2014, 22:39
Re: Couldn't compile my plugin to .so - by LukasLyrics - 28.03.2014, 22:51

Forum Jump:


Users browsing this thread: 1 Guest(s)