AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Anyone succefully compiled amxx with mingw? (https://forums.alliedmods.net/showthread.php?t=2942)

NiLuJe 06-21-2004 09:00

Anyone succefully compiled amxx with mingw?
 
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 ... :/

BAILOPAN 06-21-2004 11:37

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

Maybe you have the project set up wrong?

NiLuJe 06-21-2004 12:20

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'


PM 06-22-2004 08:41

Looks like mingw's (your?) std include files declare these types. Try to comment out the section in amx.h ;) :D ;) 8)

NiLuJe 06-22-2004 09:00

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


BAILOPAN 06-22-2004 11:01

Looks like the export symbols are being screwed up... you know, Microsoft gives out their C++ compiler for free now ;]

NiLuJe 06-22-2004 13:25

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 06-23-2004 07:04

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?

PM 06-23-2004 11:34

The 0.2 API won't need .def files anymore :) You can read your compiler's documentation or wait for 0.2 then :}

NiLuJe 06-23-2004 14:06

Hmmm, so i'll think i'll wait for the 0.2 ;)


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

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