SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 08/04/2010, 07:16 PM   #1
theRealG
Little Clucker
 
Join Date: Jan 2010
Posts: 14
Reputation: 0
Default General problems compiling on Linux (not asking for C help!)

Hey there,

I`m pretty sure this has been a common problem for most users compiling a plugin on linux the very first time, yet I myself haven`t found any solution.

Trying to compile helloworld on Ubuntu 64bit with gcc or g++ gives me the following errors/warnings:

Code:
In file included from helloworld.cpp:8:
../SDK/amx/amx.h:216: warning: packed attribute ignored for field of type char [20]
../SDK/amx/amx.h:266: warning: packed attribute ignored for field of type char
../SDK/amx/amx.h:267: warning: packed attribute ignored for field of type char
../SDK/amx/amx.h:385: error: size_t has not been declared
../SDK/amx/amx.h:405: error: size_t has not been declared
helloworld.cpp: In function bool Load(void**):
helloworld.cpp:39: warning: deprecated conversion from string constant to char*
helloworld.cpp: In function void Unload():
helloworld.cpp:49: warning: deprecated conversion from string constant to char*
helloworld.cpp: In function cell n_HelloWorld(AMX*, cell*):
helloworld.cpp:62: warning: deprecated conversion from string constant to char*

I suppose I am missing header files. I just can`t find out which. Searched on ****** a lot but no answers for my problems, or answers I (with my pretty rudimental linux knowledge) can`t understand.

If someone could just tell me the library packages I needed to install (I installed tons of them already) to get it to compile without errors I`d be very thankful.

I don`t want to get too deep into linux as a lack of time, hence I am very very overwhelmed by all the info I get via ****** (manually including headerfiles etc.).

Thanks in advance for any helpful response.

Regards.
theRealG is offline   Reply With Quote
Old 11/04/2010, 08:47 AM   #2
Romanius
Gangsta
 
Romanius's Avatar
 
Join Date: Jun 2009
Location: Bishkek, Kyrgyzstan
Posts: 722
Reputation: 26
Default Re: General problems compiling on Linux (not asking for C help!)

SAMP not support 64bit systems
__________________
, , , !
Romanius is offline   Reply With Quote
Old 11/04/2010, 11:26 AM   #3
theRealG
Little Clucker
 
Join Date: Jan 2010
Posts: 14
Reputation: 0
Default Re: General problems compiling on Linux (not asking for C help!)

Nah that`s not the case, it was my general low linux knowledge (not knowing how to compile at all), IRC solved my problem. Thanks a lot anyways.
theRealG 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
how to make a soldier aotumaticly be general when the general dies ? AlbanianGuy Scripting Help 35 13/05/2012 03:35 PM
Problems with IsNumeric when Compiling and more... Apolas Help Archive 3 13/02/2010 06:36 PM
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
[LINUX] Compiling a .so XPlatform Plugin Development 3 16/01/2009 08:48 PM


All times are GMT. The time now is 03:40 PM.


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