SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 15/01/2009, 11:38 PM   #1
XPlatform
Big Clucker
 
Join Date: May 2008
Posts: 116
Reputation: 0
Default [LINUX] Compiling a .so

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
XPlatform is offline   Reply With Quote
Old 16/01/2009, 12:01 AM   #2
XPlatform
Big Clucker
 
Join Date: May 2008
Posts: 116
Reputation: 0
Default Re: [LINUX] Compiling a .so

Code:
-D LINUX -Iamx/
correct?
XPlatform is offline   Reply With Quote
Old 16/01/2009, 08:33 PM   #3
XPlatform
Big Clucker
 
Join Date: May 2008
Posts: 116
Reputation: 0
Default Re: [LINUX] Compiling a .so

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
XPlatform is offline   Reply With Quote
Old 16/01/2009, 08:48 PM   #4
XPlatform
Big Clucker
 
Join Date: May 2008
Posts: 116
Reputation: 0
Default Re: [LINUX] Compiling a .so

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
XPlatform is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
samp linux server 03r5 doesn't run on 64 bits linux edelcat Server Support 2 08/09/2010 09:22 AM
General problems compiling on Linux (not asking for C help!) theRealG Plugin Development 2 11/04/2010 11:26 AM
Request to a Linux specialist:From Windows to Linux Thomas_Ahmey Help Archive 1 19/02/2010 11:37 AM
Edit and Compiling... Linux Packer5 Server Support 2 20/12/2009 06:03 PM
Compiling on Linux Klid Help Archive 0 21/11/2009 12:11 PM


All times are GMT. The time now is 07:48 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.