List:MySQL++« Previous MessageNext Message »
From:søren pedersen Date:March 19 2009 11:15am
Subject:trying to compile mysql++ again
View as plain text  
hi i made the .dll file again, made the .a file and now im trying to compile
and im getting this:

C:\mysql++>mingw32-make -f makefile.mingw
g++ -shared -fPIC -o mysqlpp.dll mysqlpp_beemutex.o mysqlpp_connection.o
mysqlpp
_cpool.o mysqlpp_datetime.o mysqlpp_dbdriver.o mysqlpp_field_names.o
mysqlpp_fie
ld_types.o mysqlpp_manip.o mysqlpp_myset.o mysqlpp_mysql++.o
mysqlpp_mystring.o
mysqlpp_null.o mysqlpp_options.o mysqlpp_qparms.o mysqlpp_query.o
mysqlpp_result
.o mysqlpp_row.o mysqlpp_sql_buffer.o mysqlpp_stadapter.o
mysqlpp_tcp_connection
.o mysqlpp_transaction.o mysqlpp_type_info.o mysqlpp_uds_connection.o
mysqlpp_va
llist.o mysqlpp_wnp_connection.o  -Wl,--out-implib=libmysqlpp.a -g -mthreads
-L"
C:\Programmer\MySQL\MySQL Server 5.0\lib\opt"   -lwsock32 -lmysqlclient
mysqlpp_connection.o: In function
`ZNSt8_Rb_treeISsSt4pairIKSssESt10_Select1stIS
2_ESt4lessISsESaIS2_EE8_S_rightEPSt18_Rb_tree_node_base':
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ext/new_allo
cator.h:(.text$_ZNK7mysqlpp8DBDriver14client_versionEv[mysqlpp::DBDriver::client
_version() const]+0x4e): undefined reference to `mysql_get_client_info@0'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ext/new_allo
cator.h:(.text$_ZN7mysqlpp8DBDriver6errnumEv[mysqlpp::DBDriver::errnum()]+0x10):
 undefined reference to `mysql_errno@4'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ext/new_allo
cator.h:(.text$_ZN7mysqlpp8DBDriver5errorEv[mysqlpp::DBDriver::error()]+0x10):
u
ndefined reference to `mysql_error@4'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ext/new_allo
cator.h:(.text$_ZN7mysqlpp8DBDriver8ipc_infoEv[mysqlpp::DBDriver::ipc_info()]+0x
57): undefined reference to `mysql_get_host_info@4'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ext/new_allo
cator.h:(.text$_ZN7mysqlpp8DBDriver4killEm[mysqlpp::DBDriver::kill(unsigned
long
)]+0x17): undefined reference to `mysql_kill@8'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ext/new_allo
cator.h:(.text$_ZN7mysqlpp8DBDriver4pingEv[mysqlpp::DBDriver::ping()]+0x10):
und
efined reference to `mysql_ping@4'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ext/new_allo
cator.h:(.text$_ZN7mysqlpp8DBDriver16protocol_versionEv[mysqlpp::DBDriver::proto
col_version()]+0x10): undefined reference to `mysql_get_proto_info@4'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ext/new_allo
cator.h:(.text$_ZN7mysqlpp8DBDriver9select_dbEPKc[mysqlpp::DBDriver::select_db(c
har const*)]+0x17): undefined reference to `mysql_select_db@8'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ext/new_allo
cator.h:(.text$_ZN7mysqlpp8DBDriver13server_statusEv[mysqlpp::DBDriver::server_s
tatus()]+0x57): undefined reference to `mysql_stat@4'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ext/new_allo
cator.h:(.text$_ZN7mysqlpp8DBDriver14server_versionEv[mysqlpp::DBDriver::server_
version()]+0x57): undefined reference to `mysql_get_server_info@4'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ext/new_allo
cator.h:(.text$_ZN7mysqlpp8DBDriver10thread_endEv[mysqlpp::DBDriver::thread_end(
)]+0x7): undefined reference to `mysql_thread_end@0'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ext/new_allo
cator.h:(.text$_ZN7mysqlpp8DBDriver9thread_idEv[mysqlpp::DBDriver::thread_id()]+
0x10): undefined reference to `mysql_thread_id@4'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ext/new_allo
cator.h:(.text$_ZN7mysqlpp8DBDriver12thread_startEv[mysqlpp::DBDriver::thread_st
art()]+0x7): undefined reference to `mysql_thread_init@0'
mysqlpp_dbdriver.o: In function `ZN7mysqlpp8DBDriverC2Ev':
C:/mysql++/lib/dbdriver.cpp:48: undefined reference to `mysql_init@4'
mysqlpp_dbdriver.o: In function `ZN7mysqlpp8DBDriverC1Ev':
C:/mysql++/lib/dbdriver.cpp:48: undefined reference to `mysql_init@4'
mysqlpp_dbdriver.o: In function
`ZN7mysqlpp8DBDriver7connectEPKcS2_jS2_S2_S2_':
C:/mysql++/lib/dbdriver.cpp:87: undefined reference to
`mysql_real_connect@32'
mysqlpp_dbdriver.o: In function `ZN7mysqlpp8DBDriver7connectERK8st_mysql':
C:/mysql++/lib/dbdriver.cpp:106: undefined reference to
`mysql_real_connect@32'
mysqlpp_dbdriver.o: In function `ZN7mysqlpp8DBDriver10disconnectEv':
C:/mysql++/lib/dbdriver.cpp:128: undefined reference to `mysql_close@4'
mysqlpp_dbdriver.o: In function
`ZN7mysqlpp8DBDriver10enable_sslEPKcS2_S2_S2_S2_
':
C:/mysql++/lib/dbdriver.cpp:138: undefined reference to `mysql_ssl_set@24'
mysqlpp_dbdriver.o: In function `ZN7mysqlpp8DBDriver10query_infoEv':
C:/mysql++/lib/dbdriver.cpp:156: undefined reference to `mysql_info@4'
mysqlpp_dbdriver.o: In function `ZN7mysqlpp8DBDriver8shutdownEv':
C:/mysql++/lib/dbdriver.cpp:230: undefined reference to `mysql_shutdown@8'
mysqlpp_dbdriver.o: In function `ZN7mysqlpp8DBDriver12thread_awareEv':
C:/mysql++/lib/dbdriver.cpp:240: undefined reference to `mysql_thread_safe@0
'
mysqlpp_options.o: In function `ZN7mysqlpp26ReportDataTruncationOptionD1Ev':
C:/mysql++/lib/options.cpp:(.text$_ZN7mysqlpp8DBDriver10set_optionE12mysql_optio
nPKv[mysqlpp::DBDriver::set_option(mysql_option, void const*)]+0x1e):
undefined
reference to `mysql_options@12'
C:/mysql++/lib/options.cpp:(.text$_ZN7mysqlpp8DBDriver10set_optionE21enum_mysql_
set_option[mysqlpp::DBDriver::set_option(enum_mysql_set_option)]+0x17):
undefine
d reference to `mysql_set_server_option@8'
mysqlpp_query.o: In function
`ZSt15__copy_backwardIPN7mysqlpp15SQLParseElementES
2_ET0_T_S4_S3_St26random_access_iterator_tag':
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_alg
obase.h:(.text$_ZN7mysqlpp8DBDriver13affected_rowsEv[mysqlpp::DBDriver::affected
_rows()]+0x10): undefined reference to `mysql_affected_rows@4'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_alg
obase.h:(.text$_ZN7mysqlpp8DBDriver21escape_string_no_connEPcPKcj[mysqlpp::DBDri
ver::escape_string_no_conn(char*, char const*, unsigned int)]+0x1b):
undefined r
eference to `mysql_escape_string@12'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_alg
obase.h:(.text$_ZN7mysqlpp8DBDriver13escape_stringEPcPKcj[mysqlpp::DBDriver::esc
ape_string(char*, char const*, unsigned int)]+0x25): undefined reference to
`mys
ql_real_escape_string@16'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_alg
obase.h:(.text$_ZN7mysqlpp8DBDriver7executeEPKcj[mysqlpp::DBDriver::execute(char
 const*, unsigned int)]+0x1e): undefined reference to `mysql_real_query@12'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_alg
obase.h:(.text$_ZN7mysqlpp8DBDriver9insert_idEv[mysqlpp::DBDriver::insert_id()]+
0x10): undefined reference to `mysql_insert_id@4'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_alg
obase.h:(.text$_ZN7mysqlpp8DBDriver12more_resultsEv[mysqlpp::DBDriver::more_resu
lts()]+0x10): undefined reference to `mysql_more_results@4'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_alg
obase.h:(.text$_ZN7mysqlpp8DBDriver12store_resultEv[mysqlpp::DBDriver::store_res
ult()]+0x10): undefined reference to `mysql_store_result@4'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_alg
obase.h:(.text$_ZN7mysqlpp8DBDriver11next_resultEv[mysqlpp::DBDriver::next_resul
t()]+0x10): undefined reference to `mysql_next_result@4'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_alg
obase.h:(.text$_ZN7mysqlpp8DBDriver10use_resultEv[mysqlpp::DBDriver::use_result(
)]+0x10): undefined reference to `mysql_use_result@4'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_alg
obase.h:(.text$_ZNK7mysqlpp26RefCountedPointerDestroyerI12st_mysql_resEclEPS1_[m
ysqlpp::RefCountedPointerDestroyer<st_mysql_res>::operator()(st_mysql_res*)
cons
t]+0x13): undefined reference to `mysql_free_result@4'
mysqlpp_result.o: In function `ZN7mysqlpp9ExceptionD0Ev':
C:/mysql++/lib/result.cpp:(.text$_ZNK7mysqlpp8DBDriver10field_seekEP12st_mysql_r
esj[mysqlpp::DBDriver::field_seek(st_mysql_res*, unsigned int) const]+0x14):

undefined reference to `mysql_field_seek@8'
C:/mysql++/lib/result.cpp:(.text$_ZNK7mysqlpp8DBDriver11fetch_fieldEP12st_mysql_
resj[mysqlpp::DBDriver::fetch_field(st_mysql_res*, unsigned int)
const]+0x13): undefined
reference to `mysql_fetch_field@4'
C:/mysql++/lib/result.cpp:(.text$_ZNK7mysqlpp8DBDriver11fetch_fieldEP12st_mysql_
resj[mysqlpp::DBDriver::fetch_field(st_mysql_res*, unsigned int)
const]+0x2d): undefined
reference to `mysql_fetch_field_direct@8'
C:/mysql++/lib/result.cpp:(.text$_ZNK7mysqlpp8DBDriver10num_fieldsEP12st_mysql_r
es[mysqlpp::DBDriver::num_fields(st_mysql_res*) const]+0xd): undefined
reference
 to `mysql_num_fields@4'
C:/mysql++/lib/result.cpp:(.text$_ZNK7mysqlpp8DBDriver11free_resultEP12st_mysql_
res[mysqlpp::DBDriver::free_result(st_mysql_res*) const]+0xd): undefined
reference
to `mysql_free_result@4'
C:/mysql++/lib/result.cpp:(.Creating library file: libmysqlpp.a
text$_ZNK7mysqlpp8DBDriver13fetch_lengthsEP12st_mysql_res[mysqlpp::DBDriver::fet
ch_lengths(st_mysql_res*) const]+0xd): undefined reference to
`mysql_fetch_lengt
hs@4'
C:/mysql++/lib/result.cpp:(.text$_ZNK7mysqlpp8DBDriver9fetch_rowEP12st_mysql_res
[mysqlpp::DBDriver::fetch_row(st_mysql_res*) const]+0xd): undefined
reference to
 `mysql_fetch_row@4'
C:/mysql++/lib/result.cpp:(.text$_ZNK7mysqlpp8DBDriver8num_rowsEP12st_mysql_res[
mysqlpp::DBDriver::num_rows(st_mysql_res*) const]+0xd): undefined reference
to `
mysql_num_rows@4'
collect2: ld returned 1 exit status
mingw32-make: *** [mysqlpp.dll] Error 1


does anyone have any idea why this is happening?

Thread
trying to compile mysql++ againsøren pedersen19 Mar
  • Re: trying to compile mysql++ againWarren Young19 Mar
    • Re: trying to compile mysql++ againsøren pedersen19 Mar
      • Re: trying to compile mysql++ againWarren Young19 Mar
        • Re: trying to compile mysql++ againsøren pedersen19 Mar