List:MySQL++« Previous MessageNext Message »
From:Joel Fielder Date:January 7 2008 3:34pm
Subject:Mingw link errors, v3.0.0 beta 2
View as plain text  
Hi Warren,

You're probably hating the subject of this email, but I get Mingw link
errors building the mysql++ v3.0.0 beta 2 library, following the
instructions in Readme.mingw:

mysqlpp_tcp_connection.o: In function
`ZN7mysqlpp13TCPConnection13parse_addressERSsRjS1_':
E:/Development/Code/mysql++-3.0.0/lib/tcp_connection.cpp:128: undefined
reference to `getservbyname@8'
E:/Development/Code/mysql++-3.0.0/lib/tcp_connection.cpp:130: undefined
reference to `ntohs@4'

You need -lwsock32 to fix these.

Unfortunately, there's more which I haven't been able to fix quickly
(see below) - I'm wondering if anyone happens to know the solution
before I start digging?

Joel


mysqlpp_connection.o: In function
`ZSt13__destroy_auxIPN7mysqlpp14SQLTypeAdapterEEvT_S3_12__false_type':

e:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi
ts/stl_vector.h:
(.text$_ZN7mysqlpp8DBDriver8ipc_infoEv[mysqlpp::DBDriver::ipc_info()]+0x
57):
undefined reference to `mysql_get_host_info@4'

e:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi
ts/stl_vector.h:
(.text$_ZN7mysqlpp8DBDriver4killEm[mysqlpp::DBDriver::kill(unsigned
long)]+0x17):
undefined reference to `mysql_kill@8'

e:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi
ts/stl_vector.h:
(.text$_ZN7mysqlpp8DBDriver16protocol_versionEv[mysqlpp::DBDriver::proto
col_version()]+0x10): undefined reference to `mysql_get_proto_info@4'

e:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi
ts/stl_vector.h:
(.text$_ZN7mysqlpp8DBDriver13server_statusEv[mysqlpp::DBDriver::server_s
tatus()]+0x57):
undefined reference to `mysql_stat@4'

e:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi
ts/stl_vector.h:
(.text$_ZN7mysqlpp8DBDriver14server_versionEv[mysqlpp::DBDriver::server_
version()]+0x57):
undefined reference to `mysql_get_server_info@4'

e:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi
ts/stl_vector.h:
(.text$_ZN7mysqlpp8DBDriver10thread_endEv[mysqlpp::DBDriver::thread_end(
)]+0x7):
undefined reference to `mysql_thread_end@0'

e:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi
ts/stl_vector.h:
(.text$_ZN7mysqlpp8DBDriver9thread_idEv[mysqlpp::DBDriver::thread_id()]+
0x10):
undefined reference to `mysql_thread_id@4'

e:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi
ts/stl_vector.h:
(.text$_ZN7mysqlpp8DBDriver12thread_startEv[mysqlpp::DBDriver::thread_st
art()]+0x7):
undefined reference to `mysql_thread_init@0'



mysqlpp_dbdriver.o: In function `ZNK7mysqlpp8DBDriver12thread_awareEv':

E:/Development/Code/mysql++-3.0.0/lib/dbdriver.cpp:235:
undefined reference to `mysql_thread_safe@0'



mysqlpp_query.o: In function
`ZSt15__copy_backwardIPN7mysqlpp15SQLParseElementES2_ET0_T_S4_S3_St26ran
dom_access_iterator_tag':

e:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi
ts/stl_algobase.h:
(.text$_ZN7mysqlpp8DBDriver12result_emptyEv[mysqlpp::DBDriver::result_em
pty()]+0x10):
undefined reference to `mysql_field_count@4'



mysqlpp_result.o: In function `ZN7mysqlpp9ExceptionD0Ev':

E:/Development/Code/mysql++-3.0.0/lib/result.cpp:
(.text$_ZNK7mysqlpp8DBDriver11fetch_fieldEP12st_mysql_resj[mysqlpp::DBDr
iver::fetch_field(st_mysql_res*, unsigned int) const]+0x2d):
undefined reference to `mysql_fetch_field_direct@8'

Thread
BETA RELEASE: v3.0.0 beta 2Warren Young4 Jan
  • Re: BETA RELEASE: v3.0.0 beta 2Jonathan Wakely5 Jan
    • RE: BETA RELEASE: v3.0.0 beta 2Jim Wallace7 Jan
      • Re: BETA RELEASE: v3.0.0 beta 2Warren Young7 Jan
        • Mingw link errors, v3.0.0 beta 2Joel Fielder7 Jan
          • RE: Mingw link errors, v3.0.0 beta 2Joel Fielder7 Jan
          • Re: Mingw link errors, v3.0.0 beta 2Warren Young7 Jan
            • RE: Mingw link errors, v3.0.0 beta 2Joel Fielder7 Jan
              • Re: Mingw link errors, v3.0.0 beta 2Warren Young7 Jan
                • RE: Mingw link errors, v3.0.0 beta 2Joel Fielder8 Jan
                  • RE: Mingw link errors, v3.0.0 beta 2Joel Fielder8 Jan
                  • Re: Mingw link errors, v3.0.0 beta 2Warren Young8 Jan
    • Re: BETA RELEASE: v3.0.0 beta 2Warren Young7 Jan
      • Re: BETA RELEASE: v3.0.0 beta 2Jonathan Wakely7 Jan