Raised This Month: $ Target: $400
 0% 

Anyone succefully compiled amxx with mingw?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NiLuJe
Veteran Member
Join Date: Mar 2004
Location: Paris, France
Old 06-21-2004 , 09:00   Anyone succefully compiled amxx with mingw?
Reply With Quote #1

Hm, i was trying to compile amxx & metamod with mingw, and i had some problems ...

It works fine for metamod, under linux & win, but i got errors everywhere when i try to compile amxx :s

(Tried with mingw cross-compiler under linux, & with mingw32 gcc 3.4.0 under windows ...)

[I'll try with mingw32 gcc 2.95 .. who knows? ^^ ]

PS: No, i'm not going to buy msvc ^^

EDIT: Doesn't work with mingw32 gcc 2.95 ... :/
NiLuJe is offline
Send a message via MSN to NiLuJe
BAILOPAN
Join Date: Jan 2004
Old 06-21-2004 , 11:37  
Reply With Quote #2

I compile AMXx with gcc-2.95 so mingw should work fine

Maybe you have the project set up wrong?
__________________
egg
BAILOPAN is offline
NiLuJe
Veteran Member
Join Date: Mar 2004
Location: Paris, France
Old 06-21-2004 , 12:20  
Reply With Quote #3

It Works fine under linux, dunno why it shouldn't work with mingw :s
Unless i missed something with mingw^^

The error:
Code:
In file included from modules.h:35,
                 from amxmodx.h:35,
                 from meta_api.cpp:34:
amx.h:32: error: conflicting declaration 'typedef long int int32_t'
d:\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/stdint.h:31: error: 'int32_t' has a previous declaration as `typedef int int32_t'
amx.h:32: error: declaration of `typedef long int int32_t'
d:\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/stdint.h:31: error: conflicts with previous declaration `typedef int int32_t'
amx.h:32: error: declaration of `typedef long int int32_t'
d:\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/stdint.h:31: error: conflicts with previous declaration `typedef int int32_t'
amx.h:33: error: conflicting declaration 'typedef long unsigned int uint32_t'
d:\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/stdint.h:32: error: 'uint32_t' has a previous declaration as `typedef unsigned int uint32_t'
amx.h:33: error: declaration of `typedef long unsigned int uint32_t'
d:\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/stdint.h:32: error: conflicts with previous declaration `typedef unsigned int uint32_t'
amx.h:33: error: declaration of `typedef long unsigned int uint32_t'
d:\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/stdint.h:32: error: conflicts with previous declaration `typedef unsigned int uint32_t'
NiLuJe is offline
Send a message via MSN to NiLuJe
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 06-22-2004 , 08:41  
Reply With Quote #4

Looks like mingw's (your?) std include files declare these types. Try to comment out the section in amx.h ;) ;)
__________________
hello, i am pm
PM is offline
NiLuJe
Veteran Member
Join Date: Mar 2004
Location: Paris, France
Old 06-22-2004 , 09:00  
Reply With Quote #5

Yep, I played around with that, and i got a compile ;)
Now, i cross my fingers, and i test ;)

EDIT: Err, error with the cstrike module :/
First, it doesn't find the .def file, so i rename the only one i can see (cstrike.def) to cstrike_amx.def ... And then, bam, error :s
Code:
d:\mingw\bin\dlltool: Syntax error in def file cstrike_amx.def:9
cstrike_amx.exp(.edata+0x38):fake: undefined reference to `GiveFnptrsToDll'
(Same error with the "old" / "new" cstrike module)

EDIT2: Same error with the fun module :/

EDIT3: Hmm, tried without the --def flag, and it compiles fine .. will see if it works =]
EDIT3 1/2 : Nope, doesn't work :/
Code:
L 06/22/2004 - 14:52:52: [META] ERROR: dll: Failed query plugin '<fun_amx.dll>'; Couldn't find GiveFnptrsToDll(): 
L 06/22/2004 - 14:52:52: [META] ERROR: dll: Skipping plugin '<fun_amx.dll>'; couldn't query
L 06/22/2004 - 14:52:52: [META] ERROR: dll: Failed query plugin '<cstrike_amx.dll>'; Couldn't find GiveFnptrsToDll(): 
L 06/22/2004 - 14:52:52: [META] ERROR: dll: Skipping plugin '<cstrike_amx.dll>'; couldn't query
EDIT4: And another one with the engine module ;)
Code:
meta_api.cpp: In function `cell set_msg_arg_float(AMX*, cell*)':
meta_api.cpp:328: error: call of overloaded `Set(int&, int&, long int&)' is ambiguous
NiLuJe is offline
Send a message via MSN to NiLuJe
BAILOPAN
Join Date: Jan 2004
Old 06-22-2004 , 11:01  
Reply With Quote #6

Looks like the export symbols are being screwed up... you know, Microsoft gives out their C++ compiler for free now ;]
__________________
egg
BAILOPAN is offline
NiLuJe
Veteran Member
Join Date: Mar 2004
Location: Paris, France
Old 06-22-2004 , 13:25  
Reply With Quote #7

Yeah ... I'll think i'll test with MSVC++ TK ..=]
But it works for some modules and not for the other, with mingw, it 's strange Oo
NiLuJe is offline
Send a message via MSN to NiLuJe
NiLuJe
Veteran Member
Join Date: Mar 2004
Location: Paris, France
Old 06-23-2004 , 07:04  
Reply With Quote #8

Hmm, as far as i understand, i'm only missing "good" .def files ... [Apart for the engine module ...] How can i "generate" working .def files for mingw?
NiLuJe is offline
Send a message via MSN to NiLuJe
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 06-23-2004 , 11:34  
Reply With Quote #9

The 0.2 API won't need .def files anymore You can read your compiler's documentation or wait for 0.2 then :}
__________________
hello, i am pm
PM is offline
NiLuJe
Veteran Member
Join Date: Mar 2004
Location: Paris, France
Old 06-23-2004 , 14:06  
Reply With Quote #10

Hmmm, so i'll think i'll wait for the 0.2 ;)
NiLuJe is offline
Send a message via MSN to NiLuJe
Reply



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

Forum Jump


All times are GMT -4. The time now is 14:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode