04.04.2013, 22:13
Hello there, I'm working on some plugin and it compiles with no warnings or errors on visual studio 2010, but when I try g++ on linux, it prints some error:
Код:
main.cpp: In function ‘cell HelloWorld(AMX*, cell*)’: main.cpp:15:46: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] main.cpp: In function ‘bool Load(void**)’: main.cpp:55:43: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] main.cpp: In function ‘void Unload()’: main.cpp:61:45: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' /tmp/cctj9DJi.o: In function `Load': main.cpp:(.text+0x1f25): undefined reference to `pAMXFunctions' /tmp/cctj9DJi.o: In function `AmxLoad': main.cpp:(.text+0x1f88): undefined reference to `amx_Register' collect2: ld returned 1 exit status