Best linux compiler
#5

I had no idea where to post this problem, so I post it here. I want to make a plugin under Linux, but I have problems with the SA:MP Plugin SDK. I didn't touch the files, just unpack them in a folder. I built the files (helloworld.cpp and amxplugin.cpp) and I got 9 warnings. But not that's my problem. When I try to link the files, the linker gives an error: undefined reference to `main'. I have no idea how to use the helloworld.def file (under Linux). Someone knows the answer?

The commands I used:

g++ -DLINUX -Iamx/ -c helloworld.cpp ../SDK/amxplugin.cpp
g++ -DLINUX -Iamx/ -o HelloWorld helloworld.o amxplugin.o


I almost forgot, I'm using G++ complier.

Ковалски
Reply


Messages In This Thread
Best linux compiler - by D4rkBlade - 17.12.2008, 13:36
Re: Best linux compiler - by D4rkBlade - 17.12.2008, 14:07
Re: Best linux compiler - by Kowalski - 17.12.2008, 14:30
Re: Best linux compiler - by D4rkBlade - 17.12.2008, 14:52
Re: Best linux compiler - by Kowalski - 25.12.2008, 16:58
Re: Best linux compiler - by Kowalski - 25.12.2008, 21:20
Re: Best linux compiler - by mabako - 25.12.2008, 21:34
Re: Best linux compiler - by Kowalski - 25.12.2008, 21:41
Re: Best linux compiler - by Kowalski - 26.12.2008, 11:11
Re: Best linux compiler - by Kowalski - 26.12.2008, 11:43
Re: Best linux compiler - by Kowalski - 26.12.2008, 12:04
Re: Best linux compiler - by Kowalski - 26.12.2008, 19:21
Re: Best linux compiler - by Rozzie - 26.12.2008, 20:10
Re: Best linux compiler - by Kowalski - 27.12.2008, 19:55
Re: Best linux compiler - by Streetplaya - 27.12.2008, 21:18
Re: Best linux compiler - by Y_Less - 27.12.2008, 22:01
Re: Best linux compiler - by Kowalski - 28.12.2008, 07:00
Re: Best linux compiler - by Y_Less - 28.12.2008, 16:22

Forum Jump:


Users browsing this thread: 1 Guest(s)