Compiling mysql++ with mingw
Posted by: Vitalijus Vidinevicius
Date: May 30, 2006 02:57AM

When i try to compile mysql++ on Win2K i get a lot of strange errors

mingw32-make[1]: Entering directory `c:/mysql++/examples'
g++ -o resetdb.exe resetdb_resetdb.o -L. -mthreads -g -Lc:\mysql\lib\opt -Wl,--
enable-auto-import -L..\lib -lmysqlpp_util -lmysqlpp -lmysqlclient
resetdb_resetdb.o(.text$_ZN7mysqlpp5QueryD1Ev[mysqlpp::Query::~Query()]+0x39): I
n function `ZN7mysqlpp18OptionalExceptionsD1Ev':
C:/mysql++/examples/../lib/noexceptions.h: variable 'vtable for mysqlpp::Query'
can't be auto-imported. Please read the documentation for ld's --enable-auto-imp
ort for details.
resetdb_resetdb.o(.text$_ZN7mysqlpp5QueryD1Ev[mysqlpp::Query::~Query()]+0x48):C:
/mysql++/examples/../lib/noexceptions.h: variable 'vtable for mysqlpp::Query' ca
n't be auto-imported. Please read the documentation for ld's --enable-auto-impor
t for details.
resetdb_resetdb.o(.text$_ZN7mysqlpp5QueryD1Ev[mysqlpp::Query::~Query()]+0x57):C:
/mysql++/examples/../lib/noexceptions.h: variable 'vtable for mysqlpp::Query' ca
n't be auto-imported. Please read the documentation for ld's --enable-auto-impor
t for details.
resetdb_resetdb.o(.text$_ZN7mysqlpp5QueryD1Ev[mysqlpp::Query::~Query()]+0x63):C:
/mysql++/examples/../lib/noexceptions.h: variable 'vtable for mysqlpp::Query' ca
n't be auto-imported. Please read the documentation for ld's --enable-auto-impor
t for details.
./libmysqlpp_util.a(util_util.o)(.text$_ZN7mysqlpp4DateD1Ev[mysqlpp::Date::~Date
()]+0xb): In function `ZNK7mysqlpp6Result9data_seekEj':
C:/mysql++/examples/../lib/noexceptions.h: variable 'vtable for mysqlpp::Date' c
an't be auto-imported. Please read the documentation for ld's --enable-auto-impo
rt for details.
./libmysqlpp_util.a(util_util.o)(.text$_ZN7mysqlpp4DateC1ERKNS_12ColData_TmplINS
_12const_stringEEE[mysqlpp::Date::Date(mysqlpp::ColData_Tmpl<mysqlpp::const_stri
ng> const&)]+0x45):C:/mysql++/examples/../lib/noexceptions.h: variable 'vtable f
or mysqlpp::Date' can't be auto-imported. Please read the documentation for ld's
--enable-auto-import for details.
./libmysqlpp_util.a(util_util.o)(.text$_ZN7mysqlpp6ResUseC2Ev[mysqlpp::ResUse::R
esUse()]+0x4d):C:/mysql++/examples/../lib/noexceptions.h: variable 'vtable for m
ysqlpp::ResUse' can't be auto-imported. Please read the documentation for ld's -
-enable-auto-import for details.
./libmysqlpp_util.a(util_util.o)(.text$_ZN7mysqlpp6FieldsD1Ev[mysqlpp::Fields::~
Fields()]+0xb):C:/mysql++/examples/../lib/noexceptions.h: variable 'vtable for m
ysqlpp::Fields' can't be auto-imported. Please read the documentation for ld's -
-enable-auto-import for details.
./libmysqlpp_util.a(util_util.o)(.text$_ZN7mysqlpp6FieldsC1EPNS_6ResUseE[mysqlpp
::Fields::Fields(mysqlpp::ResUse*)]+0x16):C:/mysql++/examples/../lib/noexception
s.h: variable 'vtable for mysqlpp::Fields' can't be auto-imported. Please read t
he documentation for ld's --enable-auto-import for details.
./libmysqlpp_util.a(util_util.o)(.text$_ZN7mysqlpp3RowC1Ev[mysqlpp::Row::Row()]+
0x5b):C:/mysql++/examples/../lib/noexceptions.h: variable 'vtable for mysqlpp::R
ow' can't be auto-imported. Please read the documentation for ld's --enable-auto
-import for details.
./libmysqlpp_util.a(util_util.o)(.text$_ZN7mysqlpp3RowC1Ev[mysqlpp::Row::Row()]+
0x67):C:/mysql++/examples/../lib/noexceptions.h: variable 'vtable for mysqlpp::R
ow' can't be auto-imported. Please read the documentation for ld's --enable-auto
-import for details.
collect2: ld returned 1 exit status
mingw32-make[1]: *** [resetdb.exe] Error 1
mingw32-make[1]: Leaving directory `c:/mysql++/examples'
mingw32-make: *** [examples] Error 2

I am a newbie in mysql, but i did all instructions writen in README.mingw.
Can somebody help me to fix this trouble.
Thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
Compiling mysql++ with mingw
914
May 30, 2006 02:57AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.