C:\>SET PATH=C:\MinGW\bin;%PATH%
C:\>cd MySQL\lib\opt
C:\MySQL\lib\opt>impdef libmysql.dll > libmysql.def
C:\MySQL\lib\opt>dlltool --dllname libmysql.dll --def libmysql.def --output-lib
libmysql.a
C:\MySQL\lib\opt>cd\
C:\>cd Qt\4.3.4\src\plugins\sqldrivers\mysql
C:\Qt\4.3.4\src\plugins\sqldrivers\mysql>qmake "INCLUDEPATH+=C:\MySQL\include" "
LIBS+=C:\MySQL\lib\opt\libmysql.a" mysql.pro
C:\Qt\4.3.4\src\plugins\sqldrivers\mysql>mingw32-make
mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory `C:/Qt/4.3.4/src/plugins/sqldrivers/mysql'
g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_NO_DEBUG -DQT_PLUGIN
-DQT_SQL_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\..\include\QtCore" -
I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\inclu
de\QtSql" -I"..\..\..\..\include" -I"c:\MySQL\include" -I"c:\Qt\4.3.4\include\Ac
tiveQt" -I"tmp\moc\release_shared" -I"." -I"..\..\..\..\mkspecs\win32-g++" -o tm
p\obj\release_shared\main.o main.cpp
g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_NO_DEBUG -DQT_PLUGIN
-DQT_SQL_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\..\include\QtCore" -
I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\inclu
de\QtSql" -I"..\..\..\..\include" -I"c:\MySQL\include" -I"c:\Qt\4.3.4\include\Ac
tiveQt" -I"tmp\moc\release_shared" -I"." -I"..\..\..\..\mkspecs\win32-g++" -o tm
p\obj\release_shared\qsql_mysql.o ..\..\..\sql\drivers\mysql\qsql_mysql.cpp
C:/Qt/4.3.4/bin/moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_TO_ASCII -
DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE
_LIB -DQT_THREAD_SUPPORT -I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\Q
tCore" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\include\QtSql" -I"..\..\..\.
.\include" -I"c:\MySQL\include" -I"c:\Qt\4.3.4\include\ActiveQt" -I"tmp\moc\rele
ase_shared" -I"." -I"..\..\..\..\mkspecs\win32-g++" -D__GNUC__ -DWIN32 ..\..\..\
sql\drivers\mysql\qsql_mysql.h -o tmp\moc\release_shared\moc_qsql_mysql.cpp
g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_NO_DEBUG -DQT_PLUGIN
-DQT_SQL_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\..\include\QtCore" -
I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\inclu
de\QtSql" -I"..\..\..\..\include" -I"c:\MySQL\include" -I"c:\Qt\4.3.4\include\Ac
tiveQt" -I"tmp\moc\release_shared" -I"." -I"..\..\..\..\mkspecs\win32-g++" -o tm
p\obj\release_shared\moc_qsql_mysql.o tmp\moc\release_shared\moc_qsql_mysql.cpp
windres -i qsqlmysql_resource.rc -o tmp\obj\release_shared\qsqlmysql_resource_re
s.o --include-dir=.
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
oc -Wl,-s -mthreads -Wl -shared -Wl,--out-implib,c:\Qt\4.3.4\plugins\sqldrivers\
libqsqlmysql4.a -o ..\..\..\..\plugins\sqldrivers\qsqlmysql4.dll tmp/obj/release
_shared/main.o tmp/obj/release_shared/qsql_mysql.o tmp/obj/release_shared/moc_qs
ql_mysql.o -L"c:\Qt\4.3.4\lib" -L"c:\Qt\4.3.4\lib" tmp\obj\release_shared\qsqlm
ysql_resource_res.o C:\MySQL\lib\opt\libmysql.a -lQtSql4 -lQtCore4
Creating library file: c:\Qt\4.3.4\plugins\sqldrivers\libqsqlmysql4.a
tmp/obj/release_shared/qsql_mysql.o(.text+0x4c):qsql_mysql.cpp: undefined refere
nce to `mysql_character_set_name@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x184):qsql_mysql.cpp: undefined refer
ence to `mysql_error@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x19a):qsql_mysql.cpp: undefined refer
ence to `mysql_errno@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x6d7):qsql_mysql.cpp: undefined refer
ence to `mysql_stmt_error@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x6eb):qsql_mysql.cpp: undefined refer
ence to `mysql_stmt_errno@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0xa25):qsql_mysql.cpp: undefined refer
ence to `mysql_stmt_data_seek@12'
tmp/obj/release_shared/qsql_mysql.o(.text+0xa39):qsql_mysql.cpp: undefined refer
ence to `mysql_stmt_fetch@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0xb13):qsql_mysql.cpp: undefined refer
ence to `mysql_data_seek@12'
tmp/obj/release_shared/qsql_mysql.o(.text+0xb2a):qsql_mysql.cpp: undefined refer
ence to `mysql_fetch_row@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0xc8f):qsql_mysql.cpp: undefined refer
ence to `mysql_stmt_fetch@4'
.
.
.
.
rence to `mysql_fetch_row@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x5235):qsql_mysql.cpp: undefined refe
rence to `mysql_free_result@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x539f):qsql_mysql.cpp: undefined refe
rence to `mysql_stmt_result_metadata@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x53ba):qsql_mysql.cpp: undefined refe
rence to `mysql_num_fields@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x54a4):qsql_mysql.cpp: undefined refe
rence to `mysql_fetch_field@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x56a3):qsql_mysql.cpp: undefined refe
rence to `mysql_next_result@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x56c1):qsql_mysql.cpp: undefined refe
rence to `mysql_store_result@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x56d0):qsql_mysql.cpp: undefined refe
rence to `mysql_free_result@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x56ea):qsql_mysql.cpp: undefined refe
rence to `mysql_next_result@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x58c2):qsql_mysql.cpp: undefined refe
rence to `mysql_free_result@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x58e6):qsql_mysql.cpp: undefined refe
rence to `mysql_stmt_close@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x5bc0):qsql_mysql.cpp: undefined refe
rence to `mysql_stmt_prepare@12'
tmp/obj/release_shared/qsql_mysql.o(.text+0x5ccd):qsql_mysql.cpp: undefined refe
rence to `mysql_stmt_init@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x5d87):qsql_mysql.cpp: undefined refe
rence to `mysql_stmt_param_count@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x5da8):qsql_mysql.cpp: undefined refe
rence to `mysql_stmt_param_count@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x5fde):qsql_mysql.cpp: undefined refe
rence to `mysql_real_query@12'
tmp/obj/release_shared/qsql_mysql.o(.text+0x6164):qsql_mysql.cpp: undefined refe
rence to `mysql_store_result@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x618a):qsql_mysql.cpp: undefined refe
rence to `mysql_field_count@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x61af):qsql_mysql.cpp: undefined refe
rence to `mysql_field_count@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x620d):qsql_mysql.cpp: undefined refe
rence to `mysql_affected_rows@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x6277):qsql_mysql.cpp: undefined refe
rence to `mysql_fetch_field_direct@8'
tmp/obj/release_shared/qsql_mysql.o(.text+0x6894):qsql_mysql.cpp: undefined refe
rence to `mysql_stmt_reset@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x6c85):qsql_mysql.cpp: undefined refe
rence to `mysql_stmt_param_count@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x6ca0):qsql_mysql.cpp: undefined refe
rence to `mysql_stmt_param_count@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x6cd0):qsql_mysql.cpp: undefined refe
rence to `mysql_stmt_execute@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x6de5):qsql_mysql.cpp: undefined refe
rence to `mysql_stmt_affected_rows@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x6e2d):qsql_mysql.cpp: undefined refe
rence to `mysql_stmt_bind_result@8'
tmp/obj/release_shared/qsql_mysql.o(.text+0x6e70):qsql_mysql.cpp: undefined refe
rence to `mysql_stmt_attr_set@12'
tmp/obj/release_shared/qsql_mysql.o(.text+0x6e92):qsql_mysql.cpp: undefined refe
rence to `mysql_stmt_store_result@4'
tmp/obj/release_shared/qsql_mysql.o(.text+0x6edd):qsql_mysql.cpp: undefined refe
rence to `mysql_stmt_bind_result@8'
tmp/obj/release_shared/qsql_mysql.o(.text+0x738a):qsql_mysql.cpp: undefined refe
rence to `mysql_stmt_bind_param@8'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [..\..\..\..\plugins\sqldrivers\qsqlmysql4.dll] Error 1
mingw32-make[1]: Leaving directory `C:/Qt/4.3.4/src/plugins/sqldrivers/mysql'
mingw32-make: *** [release] Error 2
C:\Qt\4.3.4\src\plugins\sqldrivers\mysql>
Bookmarks