List:MySQL++« Previous MessageNext Message »
From:Dylan Reynolds Date:November 27 2008 5:14am
Subject:Problem trying to develop app in win32 with mysql++, mysql, minGW
and eclipse
View as plain text  
I am having a problem with an application I am trying to compile.

I have mysql++ 3.0.7
My SQL Server 5.0 windows exe download
QT 4.4.3
mingw 5.1.4
and Eclipse 3.4.1

I have come along way and have got QT examples compiling and mysql++ examples compiling.

So far however I have only compiled simple1 and interfaces example.

Both build and run okay.

My program has an error:

mingw32-make debug 
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `C:/Users/Entecho/Desktop/Programming/Entecho Config
Management Src'
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
-mthreads -Wl -Wl,-subsystem,windows -o debug/SRC_Output_Targ.exe
object_script.SRC_Output_Targ.Debug  -L'c:/Qt/4.4.3/lib' -lmingw32 -lqtmaind -lmysqlpp
-lmysql -lQtSqld4 -lQtGuid4 -lQtNetworkd4 -lQtCored4
./debug/interface.o: In function
`ZN9__gnu_cxx13new_allocatorI11PartsImagesE8allocateEjPKv':
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_iterator.h:(.text$_ZNK7mysqlpp26RefCountedPointerDestroyerI12st_mysql_resEclEPS1_[mysqlpp::RefCountedPointerDestroyer<st_mysql_res>::operator()(st_mysql_res*)
const]+0x13): undefined reference to `mysql_free_result@4'
mingw32-make[1]: Leaving directory `C:/Users/Entecho/Desktop/Programming/Entecho Config
Management Src'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [debug/SRC_Output_Targ.exe] Error 1
mingw32-make: *** [debug] Error 2

I think the key part is:

undefined reference to `mysql_free_result@4'


I have read the mailing list a bit and a while ago some people mentioned that the
libmysql.dll was incompatible with GNU make such as mingw because it was compiled with
MSVS.

Is this my problem?  Will this be a problem even once I get past my current problem?  Any
ideas on how to solve the problem above?

Note that PartsImages is an sql_create_3:

sql_create_3(PartsImages, 1, 3,
    mysqlpp::Null<mysqlpp::sql_int>, ImageID,
    mysqlpp::sql_int, PartID,
    mysqlpp::sql_blob, Image)

Any help much appreaciated.

Kind Regards

Dylan Reynolds


Thread
Problem trying to develop app in win32 with mysql++, mysql, minGWand eclipseDylan Reynolds27 Nov
  • Re: Problem trying to develop app in win32 with mysql++, mysql, minGW and eclipseWarren Young27 Nov
Re: Problem trying to develop app in win32 with mysql++, mysql, minGW and eclipseWarren Young28 Nov