SA-MP Forums Archive
[LINUX] Compiling a .so - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [LINUX] Compiling a .so (/showthread.php?tid=61819)



[LINUX] Compiling a .so - XPlatform - 15.01.2009

Hello,
I've recently made a plugin for the gamemode I am making. I have hit a brick wall. The server we have planned to get will run on Linux...

...So I ask, how do I compile into a .so file using DevC++.

I've seen people post this:
Code:
-DLINUX -Iamx/
But it don't work... I assume it's for a different Compiler?

Any help is appreciated,

Thank you,

Stephen


Re: [LINUX] Compiling a .so - XPlatform - 16.01.2009

Code:
-D LINUX -Iamx/
correct?


Re: [LINUX] Compiling a .so - XPlatform - 16.01.2009

Ok, I went and got Linux, downloaded KDevelop, and started moving the plugin over. Main problem I have now is that I get this error:

Code:
:75: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Load'
Here is line 75:

Code:
PLUGIN_EXPORT bool PLUGIN_CALL Load( void **ppData )
Any help is appreciated,

Thanks

PS: I think it means that Load() isn't defined? Maybe...

Stephen


Re: [LINUX] Compiling a .so - XPlatform - 16.01.2009

No, I did not ask to go and have to read a billion pages of stuff, I only want to know what this problem is, can that be so hard to answer?

I mean, If you knew the answer, why hold it back, I believe the forums are supposed to be a helpful tool, but when you say, "Oh, I have the answer, but you can go read a book of stuff you'll never use, to find one or two things your doing wrong."

Either answer the question, or don't post, I'm trying not to be a dick... But I hate it when people "Beat around the bush".

Thanks Stephen