Re: mysqlclient.lib and missing references
Inside of cygwin I ran gcc sample.c -o sample.exe -I/usr/include/mysql/ -L/lib/mysql -lmysqlclient -lmySQL -lz -lm I confirmed libmysql.dll is in mysql/bin with everyone access full control against these files, also that username and password to db are right, but I am guessing there is another file with bad permissions. mysql\bin is in path. Exception: STATUS_ACCESS_VIOLATION at eip=10006C12 eax= ebx= ecx= edx=0002 esi=0022FCC8 edi=0022FEC8 ebp=0022FCC8 esp=0022F180 program=C:\cygwin\usr\src\sample.exe cs=001B ds=0023 es=0023 fs=003B gs= ss=0023 Stack trace: Frame Function Args 0022FCC8 10006C12 (0022FCD8, 6105E8AB, , ) End of stack trace - Original Message - From: Fabrice Marchal [EMAIL PROTECTED] To: Leif Johnston [EMAIL PROTECTED] Sent: Friday, January 30, 2004 9:04 AM Subject: Re: mysqlclient.lib and missing references Hello Leif, I think you shoud also link the wrapper library : -lmySQL Let me know if it works. I would like to hear from you also if your sample.exe works because I have encountered problems with the newest mysql/cygwin/g++ Fabrice Leif Johnston wrote: I am trying to compile a straightforward sample from the complete MYSQL reference on windows, under cygwin and mysql 4.0.16. I have copied the winfiles into my cygwin space /usr/src and am executing the following with the following results. With mysqlclient, I am getting no useful compile with mySQL.lb I am getting close but am missing the _mysql_free_results. Is there another lib I must get/use/? Thanks [EMAIL PROTECTED] /usr/src $ gcc sample.c -o sample.exe -I/usr/include/mysql -L/lib/mysql -l mysqlserver -lz /cygdrive/c/DOCUME~1/LJOHNS~1/LOCALS~1/Temp/ccUIjujX.o(.text+0xa2):sample.c : undefined reference to `_mysql_real_connect' /cygdrive/c/DOCUME~1/LJOHNS~1/LOCALS~1/Temp/ccUIjujX.o(.text+0xb8):sample.c : undefined reference to `_mysql_query' /cygdrive/c/DOCUME~1/LJOHNS~1/LOCALS~1/Temp/ccUIjujX.o(.text+0xc6):sample.c : undefined reference to `_mysql_store_result' /cygdrive/c/DOCUME~1/LJOHNS~1/LOCALS~1/Temp/ccUIjujX.o(.text+0xda):sample.c : undefined reference to `_mysql_fetch_row' /cygdrive/c/DOCUME~1/LJOHNS~1/LOCALS~1/Temp/ccUIjujX.o(.text+0x13f):sample. c: undefined reference to `_mysql_free_results' /cygdrive/c/DOCUME~1/LJOHNS~1/LOCALS~1/Temp/ccUIjujX.o(.text+0x14d):sample. c: undefined reference to `_mysql_close' collect2: ld returned 1 exit status [EMAIL PROTECTED] /usr/src $ gcc sample.c -o sample.exe -I/usr/include/mysql -L/lib/mysql/lib/opt -l mySQL -lz /cygdrive/c/DOCUME~1/LJOHNS~1/LOCALS~1/Temp/ccG7fUqP.o(.text+0x13f):sample. c: undefined reference to `_mysql_free_results' collect2: ld returned 1 exit status -- Fabrice Marchal http://www.inf.ethz.ch/~marchal [EMAIL PROTECTED] [EMAIL PROTECTED] +41-(0)1-632-56-79 ETH Zurich, CoLab Computational LaboratoryFAX:+41-(0)1-632-17-03 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
mysqlclient.lib
Dear Friends Where i can get the source for mysql 4.0.14 I´ve like to contribute with an mysqlclient.lib compiled with Borland C++ compilers as existe an version of this lib for 3.23.36 Regards and thanks in advance Luiz --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.521 / Virus Database: 319 - Release Date: 23/09/03 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
Re: mysqlclient.lib
Go to the end of the page http://www.mysql.com/downloads/mysql-4.0.html You will find the source downloads. I said the end of the page. Thanks Emery - Original Message - From: Luiz Rafael Culik Guimaraes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, September 28, 2003 17:49 Subject: mysqlclient.lib Dear Friends Where i can get the source for mysql 4.0.14 I´ve like to contribute with an mysqlclient.lib compiled with Borland C++ compilers as existe an version of this lib for 3.23.36 Regards and thanks in advance Luiz --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.521 / Virus Database: 319 - Release Date: 23/09/03 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
Can't link to the mysqlclient.lib
I am trying to link with the mysqlclient.lib to prove the myTest program which comes with MySQL (with VC++ and Windows 2000) and I keep getting errors like these myTest.obj : error LNK2001: unresolved external symbol _mysql_list_tables@8 Thanks for your help Ahora podés usar Yahoo! Messenger desde tu celular. Aprendé cómo hacerlo en Yahoo! Móvil: http://ar.mobile.yahoo.com/sms.html - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
mysqlclient.lib compiling problem
I am trying to link with the static lib mysqlclient.lib and keep getting errors like this mysqlclient.lib(libmysql.obj) : error LNK2001: unresolved external symbol _WSAGetLastError@0 I have the mysql version 3.23.45, running win2k, compiling on vc6. Thanks, jake - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: mysqlclient.lib compiling problem
I've run into the same problem with mysql++'s msvc++ port mysql++.lib. Devore, Jacob wrote: I am trying to link with the static lib mysqlclient.lib and keep getting errors like this mysqlclient.lib(libmysql.obj) : error LNK2001: unresolved external symbol _WSAGetLastError@0 I have the mysql version 3.23.45, running win2k, compiling on vc6. Thanks, jake - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php -- Colin Faber (303) 859-1491 fpsn.net, Inc. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
RE: mysqlclient.lib compiling problem
How did you fix it, just use the dll? Thanks, jake -Original Message- From: Colin Faber [mailto:[EMAIL PROTECTED]] Sent: Friday, December 14, 2001 5:07 PM To: Devore, Jacob Cc: '[EMAIL PROTECTED]' Subject: Re: mysqlclient.lib compiling problem I've run into the same problem with mysql++'s msvc++ port mysql++.lib. Devore, Jacob wrote: I am trying to link with the static lib mysqlclient.lib and keep getting errors like this mysqlclient.lib(libmysql.obj) : error LNK2001: unresolved external symbol _WSAGetLastError@0 I have the mysql version 3.23.45, running win2k, compiling on vc6. Thanks, jake - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php -- Colin Faber (303) 859-1491 fpsn.net, Inc. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: mysqlclient.lib compiling problem
no, I haven't fixed it yet ;-) Devore, Jacob wrote: How did you fix it, just use the dll? Thanks, jake -Original Message- From: Colin Faber [mailto:[EMAIL PROTECTED]] Sent: Friday, December 14, 2001 5:07 PM To: Devore, Jacob Cc: '[EMAIL PROTECTED]' Subject: Re: mysqlclient.lib compiling problem I've run into the same problem with mysql++'s msvc++ port mysql++.lib. Devore, Jacob wrote: I am trying to link with the static lib mysqlclient.lib and keep getting errors like this mysqlclient.lib(libmysql.obj) : error LNK2001: unresolved external symbol _WSAGetLastError@0 I have the mysql version 3.23.45, running win2k, compiling on vc6. Thanks, jake - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php -- Colin Faber (303) 859-1491 fpsn.net, Inc. -- Colin Faber (303) 859-1491 fpsn.net, Inc. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: mysqlclient.lib compiling problem
At 16:52 14/12/2001 -0800, Devore, Jacob wrote: Hi, You need to specify the winsock.h header in your code and the wsock32.lib in the link libraries. Regards, Miguel I am trying to link with the static lib mysqlclient.lib and keep getting errors like this mysqlclient.lib(libmysql.obj) : error LNK2001: unresolved external symbol _WSAGetLastError@0 I have the mysql version 3.23.45, running win2k, compiling on vc6. Thanks, jake - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php -- For technical support contracts, goto https://order.mysql.com/ __ ___ ___ __ / |/ /_ __/ __/ __ \/ /Miguel A. Solórzano [EMAIL PROTECTED] / /|_/ / // /\ \/ /_/ / /__ MySQL AB, FullTime Developer /_/ /_/\_, /___/\___\_\___/ Mogi das Cruzes - São Paulo, Brazil ___/ www.mysql.com - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
RE: mysqlclient.lib compiling problem
All is well now. Thank you for you help Miquel. jake -Original Message- From: Miguel Angel Solórzano [mailto:[EMAIL PROTECTED]] Sent: Friday, December 14, 2001 5:51 PM To: Devore, Jacob; '[EMAIL PROTECTED]' Subject: Re: mysqlclient.lib compiling problem At 16:52 14/12/2001 -0800, Devore, Jacob wrote: Hi, You need to specify the winsock.h header in your code and the wsock32.lib in the link libraries. Regards, Miguel I am trying to link with the static lib mysqlclient.lib and keep getting errors like this mysqlclient.lib(libmysql.obj) : error LNK2001: unresolved external symbol _WSAGetLastError@0 I have the mysql version 3.23.45, running win2k, compiling on vc6. Thanks, jake - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php -- For technical support contracts, goto https://order.mysql.com/ __ ___ ___ __ / |/ /_ __/ __/ __ \/ /Miguel A. Solórzano [EMAIL PROTECTED] / /|_/ / // /\ \/ /_/ / /__ MySQL AB, FullTime Developer /_/ /_/\_, /___/\___\_\___/ Mogi das Cruzes - São Paulo, Brazil ___/ www.mysql.com - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Missing symbols in mysqlclient.lib in Win32
Hi, while trying to link the DBD::mysql driver on a Win32 machine I receive the following error message claiming about missing symbols __pctype and ___mb_cur_max in mysqlclient.lib. As you can see from the output below, I am linking against all .lib files in the MySQL distribution. The paths are right. I am not an experienced user, but in particular the symbol __pctype looks like it should be a header definition actually. I am using VC++ 6.0, SP3. Any hint welcome. Thanks, Jochen C:\Perl\bin\Perl.exe myld link -out:blib\arch\auto\DBD\mysql\mysql.dll -dll -nologo -nodefaultlib -release -libpath:C:\Perl\lib\CORE -machine:x86 dbdimp.obj mysql.obj C:\Perl\lib\CORE\perl56.lib c:\Prg\mysql\lib\opt\mysqlclient.lib c:\Prg\mysql\lib\opt\libmysql.lib c:\Prg\mysql\lib\opt\zlib.lib C:\prg\MVS\VC98\lib\oldnames.lib C:\prg\MVS\VC98\lib\kernel32.lib C:\prg\MVS\VC98\lib\user32.lib C:\prg\MVS\VC98\lib\gdi32.lib C:\prg\MVS\VC98\lib\winspool.lib C:\prg\MVS\VC98\lib\comdlg32.lib C:\prg\MVS\VC98\lib\advapi32.lib C:\prg\MVS\VC98\lib\shell32.lib C:\prg\MVS\VC98\lib\ole32.lib C:\prg\MVS\VC98\lib\oleaut32.lib C:\prg\MVS\VC98\lib\netapi32.lib C:\prg\MVS\VC98\lib\uuid.lib C:\prg\MVS\VC98\lib\wsock32.lib C:\prg\MVS\VC98\lib\mpr.lib C:\prg\MVS\VC98\lib\winmm.lib C:\prg\MVS\VC98\lib\version.lib C:\prg\MVS\VC98\lib\odbc32.lib C:\prg\MVS\VC98\lib\odbccp32.lib C:\prg\MVS\VC98\lib\msvcrt.lib -def:mysql.def Creating library blib\arch\auto\DBD\mysql\mysql.lib and object blib\arch\auto\DBD\mysql\mysql.exp mysqlclient.lib(str2int.obj) : error LNK2001: unresolved external symbol __pctype mysqlclient.lib(my_init.obj) : error LNK2001: unresolved external symbol __pctype mysqlclient.lib(charset.obj) : error LNK2001: unresolved external symbol __pctype mysqlclient.lib(default.obj) : error LNK2001: unresolved external symbol __pctype mysqlclient.lib(my_error.obj) : error LNK2001: unresolved external symbol __pctype mysqlclient.lib(str2int.obj) : error LNK2001: unresolved external symbol ___mb_cur_max mysqlclient.lib(my_init.obj) : error LNK2001: unresolved external symbol ___mb_cur_max mysqlclient.lib(charset.obj) : error LNK2001: unresolved external symbol ___mb_cur_max mysqlclient.lib(default.obj) : error LNK2001: unresolved external symbol ___mb_cur_max mysqlclient.lib(my_error.obj) : error LNK2001: unresolved external symbol ___mb_cur_max - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php