20.11.2009, 20:16
It still doesn't seem to be compiling right:
P.S. it's a Gentoo.
Code:
gcc -c -O3 -w -DLINUX -I../SDK/amx/ ../SDK/amx/*.c g++ -c -O3 -w -DLINUX -I../SDK/amx/ ../SDK/*.cpp g++ -c -O3 -w -DLINUX -I../SDK/amx/ *.cpp g++ -O2 -fshort-wchar -shared -o "./Release-Linux/merrandom.so" *.o collect2: ld terminated with signal 11 [Segmentation fault] merrandom.o: In function `Supports': merrandom.cpp:(.text+0x0): multiple definition of `Supports' helloworld.o:helloworld.cpp:(.text+0x0): first defined here merrandom.o: In function `Load': merrandom.cpp:(.text+0x10): multiple definition of `Load' helloworld.o:helloworld.cpp:(.text+0x10): first defined here merrandom.o:(.bss+0x0): multiple definition of `logprintf' helloworld.o:(.bss+0x0): first defined here /usr/lib/gcc/i486-pc-linux-gnu/4.2.4/../../../../i486-pc-linux-gnu/bin/ld: Warning: size of symbol `logprintf' changed from 8 in helloworld.o to 4 in merrandom.o merrandom.o: In function `Unload': merrandom.cpp:(.text+0x40): multiple definition of `Unload' helloworld.o:helloworld.cpp:(.text+0x50): first defined here merrandom.o: In function `AmxUnload': merrandom.cpp:(.text+0x60): multiple definition of `AmxUnload' helloworld.o:helloworld.cpp:(.text+0x70): first defined here merrandom.o: In function `AmxLoad': merrandom.cpp:(.text+0xd0): multiple definition of `AmxLoad' helloworld.o:helloworld.cpp:(.text+0x190): first defined here merrandom.o:(.bss+0x4): multiple definition of `ppPluginData' helloworld.o:(.bss+0x8): first defined here /usr/lib/gcc/i486-pc-linux-gnu/4.2.4/../../../../i486-pc-linux-gnu/bin/ld: Warning: size of symbol `ppPluginData' changed from 8 in helloworld.o to 4 in merrandom.o /usr/lib/gcc/i486-pc-linux-gnu/4.2.4/../../../../i486-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `helloworld.o' is incompatible with i386 output /usr/lib/gcc/i486-pc-linux-gnu/4.2.4/../../../../i486-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `invoke.o' is incompatible with i386 output make: *** [all] Error 1