Raised This Month: $32 Target: $400
 8% 

How to compile mysql-module?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JC_Denton
Member
Join Date: Mar 2004
Old 03-31-2004 , 12:38   How to compile mysql-module?
Reply With Quote #1

hm.. how to compile mysql-module..
i'm using ms c++ 6...

*edit: debug does work.. but not release..
JC_Denton is offline
BAILOPAN
Join Date: Jan 2004
Old 03-31-2004 , 20:13  
Reply With Quote #2

did you follow the directions?

you need to include the lib file. alas it only compiles on msvc7 for me
__________________
egg
BAILOPAN is offline
_KaszpiR_
AMX Mod X Beta Tester
Join Date: Feb 2004
Location: Warsaw, Poland
Old 04-01-2004 , 00:53  
Reply With Quote #3

/me wonders about mingw....
__________________
= Ave Cesar, morituri Te salutant. = http://nvt.prv.pl = http://hlds.pl/
_KaszpiR_ is offline
JC_Denton
Member
Join Date: Mar 2004
Old 04-01-2004 , 06:54  
Reply With Quote #4

i added "mysql\extra\lib_win32" to the library folders and
"mysql\extra\includes" to the includes folders...

here the failures in debug mode:
Code:
Temporäre Dateien und Ausgabedateien für "mysql - Win32 Debug" werden gelöscht.
--------------------Konfiguration: mysql - Win32 Debug--------------------
Kompilierung läuft...
Befehlszeilenwarnung D4024 : Typ der Quelldatei 'PRECOMP_VC7_TOBEREMOVED' nicht erkannt, Objektdatei wird angenommen
Befehlszeilenwarnung D4027 : Quelldatei 'PRECOMP_VC7_TOBEREMOVED' ignoriert
mysql.cpp
Linker-Vorgang läuft...
   Bibliothek .\Debug/mysql.lib und Objekt .\Debug/mysql.exp wird erstellt
LINK : warning LNK4098: Standardbibliothek "LIBCMT" steht in Konflikt mit anderen Bibliotheken; /NODEFAULT:Bibliothek verwenden

mysql.dll - 0 Fehler, 1 Warnung(en)
an here the failures in release mode:
Code:
C:\amxmodx\mysql\extra\include\mysql\mysql_version.h(7): Datei "custom_conf.h" nicht gefunden.
C:\AMXMODX\AMXMODX\amx.h(33): Datei "stdint.h" nicht gefunden.
C:\AMXMODX\AMXMODX\amx.h(39): Datei "inttypes.h" nicht gefunden.
--------------------Konfiguration: mysql - Win32 Release--------------------
Kompilierung läuft...
Befehlszeilenwarnung D4024 : Typ der Quelldatei 'PRECOMP_VC7_TOBEREMOVED' nicht erkannt, Objektdatei wird angenommen
Befehlszeilenwarnung D4027 : Quelldatei 'PRECOMP_VC7_TOBEREMOVED' ignoriert
mysql.cpp
Linker-Vorgang läuft...
   Bibliothek .\Release/mysql.lib und Objekt .\Release/mysql.exp wird erstellt
mysqlclient.lib(libmysql.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _ntohs@4
mysqlclient.lib(libmysql.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _getservbyname@8
mysqlclient.lib(libmysql.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _htons@4
mysqlclient.lib(libmysql.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _inet_addr@4
mysqlclient.lib(libmysql.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _WSAGetLastError@0
mysqlclient.lib(violite.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _WSAGetLastError@0
mysqlclient.lib(my_gethostbyname.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _WSAGetLastError@0
mysqlclient.lib(libmysql.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _socket@12
mysqlclient.lib(libmysql.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _connect@12
mysqlclient.lib(violite.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _recv@16
mysqlclient.lib(violite.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _send@16
mysqlclient.lib(violite.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _setsockopt@20
mysqlclient.lib(violite.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _closesocket@4
mysqlclient.lib(violite.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _shutdown@8
mysqlclient.lib(violite.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _getpeername@12
mysqlclient.lib(my_init.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _WSACleanup@0
mysqlclient.lib(my_init.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _WSAStartup@8
mysqlclient.lib(my_gethostbyname.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _gethostbyname@4
mysqlclient.lib(my_net.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _inet_ntoa@4
Release/mysql.dll : fatal error LNK1120: 17 unaufgeloeste externe Verweise
Fehler beim Ausführen von link.exe.

mysql.dll - 20 Fehler, 0 Warnung(en)

it looks like it could not find these three files: "custom_conf.h", "stdint.h" and "inttypes.h"
JC_Denton is offline
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 04-01-2004 , 07:03  
Reply With Quote #5

make sure you link with winsock libraries (wsock.lib or wsock32.lib or winsock32.lib or something)
__________________
hello, i am pm
PM is offline
JC_Denton
Member
Join Date: Mar 2004
Old 04-01-2004 , 09:53  
Reply With Quote #6

wsock library is included.. it's in the standard visual libraryfolder

still doesn't work.. hrhr
may some files in cvs are missing?
JC_Denton is offline
_KaszpiR_
AMX Mod X Beta Tester
Join Date: Feb 2004
Location: Warsaw, Poland
Old 04-02-2004 , 03:26  
Reply With Quote #7

for some people german error messages are not helpful :/
__________________
= Ave Cesar, morituri Te salutant. = http://nvt.prv.pl = http://hlds.pl/
_KaszpiR_ is offline
JC_Denton
Member
Join Date: Mar 2004
Old 04-02-2004 , 04:24  
Reply With Quote #8

sry.. i don't find an option to change the language in visual c++...

i think the main problem is that it doesn't find these 2 files: stdint.h and inttypes.h
JC_Denton is offline
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 04-02-2004 , 05:36  
Reply With Quote #9

That could be a problem, but there are also declarations of functions which are not defined (unresloved external symbol xxx). Are you really sure the winsock.lib or something like that is in Additional Depedencies in linker options?
__________________
hello, i am pm
PM is offline
JC_Denton
Member
Join Date: Mar 2004
Old 04-02-2004 , 07:05  
Reply With Quote #10

oh.. i thought it would be enought when the right folder is added in directories...

now i added it under link options.. now it seems to compile without problems.. only the files are still missing..
thx..

Code:
--------------------Konfiguration: mysql - Win32 Release--------------------
C:\AMXMODX\MYSQL\EXTRA\INCLUDE\mysql\mysql_version.h(7): Datei "custom_conf.h" nicht gefunden.
C:\AMXMODX\AMXMODX\amx.h(33): Datei "stdint.h" nicht gefunden.
C:\AMXMODX\AMXMODX\amx.h(39): Datei "inttypes.h" nicht gefunden.
Kompilierung läuft...
Befehlszeilenwarnung D4024 : Typ der Quelldatei 'PRECOMP_VC7_TOBEREMOVED' nicht erkannt, Objektdatei wird angenommen
Befehlszeilenwarnung D4027 : Quelldatei 'PRECOMP_VC7_TOBEREMOVED' ignoriert
mysql.cpp
Linker-Vorgang läuft...
   Bibliothek .\Release/mysql.lib und Objekt .\Release/mysql.exp wird erstellt

mysql.dll - 0 Fehler, 0 Warnung(en)
JC_Denton is offline
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 22:15.


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