List:MySQL++« Previous MessageNext Message »
From:Scott Comber Date:August 31 2004 8:03am
Subject:Linker errors
View as plain text  
Hi, thank you, i tried using the newer version mysql ++-1.7.14
and i had much more success. but now i am getting linker errors like no ones buisness, and
im not sure if its the complier causing the errors, or somthing i have missed. 

ApocUser error LNK2001: unresolved external symbol _ntohs@4
ApocUser error LNK2001: unresolved external symbol _WSAGetLastError@0
ApocUser error LNK2001: unresolved external symbol _WSAGetLastError@0
ApocUser error LNK2005: ____lc_codepage_func already defined in LIBC.lib(initctyp.obj)
ApocUser error LNK2005: ____lc_collate_cp_func already defined in LIBC.lib(initctyp.obj)
ApocUser error LNK2005: ____lc_handle_func already defined in LIBC.lib(initctyp.obj)
ApocUser error LNK2005: ____mb_cur_max_func already defined in LIBC.lib(initctyp.obj)
ApocUser error LNK2005: ___endstdio already defined in LIBC.lib(_file.obj)
ApocUser error LNK2005: ___free_lconv_mon already defined in LIBC.lib(initmon.obj)
ApocUser error LNK2005: ___free_lconv_num already defined in LIBC.lib(initnum.obj)
ApocUser error LNK2005: ___init_ctype already defined in LIBC.lib(initctyp.obj)
ApocUser error LNK2005: ___init_dummy already defined in LIBC.lib(setlocal.obj)
ApocUser error LNK2005: ___init_monetary already defined in LIBC.lib(initmon.obj)
ApocUser error LNK2005: ___init_numeric already defined in LIBC.lib(initnum.obj)
ApocUser error LNK2005: ___initmbctable already defined in LIBC.lib(mbctype.obj)
ApocUser error LNK2005: ___initstdio already defined in LIBC.lib(_file.obj)
ApocUser error LNK2005: ___iob_func already defined in LIBC.lib(_file.obj)
ApocUser error LNK2005: ___lc_lctostr already defined in LIBC.lib(setlocal.obj)
ApocUser error LNK2005: ___lc_strtolc already defined in LIBC.lib(setlocal.obj)
ApocUser error LNK2005: ___lconv_intl already defined in LIBC.lib(initmon.obj)
ApocUser error LNK2005: __alloc_osfhnd already defined in LIBC.lib(osfinfo.obj)
ApocUser error LNK2005: __cflush already defined in LIBC.lib(_file.obj)
ApocUser error LNK2005: __expandlocale already defined in LIBC.lib(setlocal.obj)
ApocUser error LNK2005: __free_osfhnd already defined in LIBC.lib(osfinfo.obj)
ApocUser error LNK2005: __get_osfhandle already defined in LIBC.lib(osfinfo.obj)
ApocUser error LNK2005: __getmbcp already defined in LIBC.lib(mbctype.obj)
ApocUser error LNK2005: __iob already defined in LIBC.lib(_file.obj)
ApocUser error LNK2005: __isctype already defined in LIBC.lib(isctype.obj)
ApocUser error LNK2005: __open_osfhandle already defined in LIBC.lib(osfinfo.obj)
ApocUser error LNK2005: __set_osfhnd already defined in LIBC.lib(osfinfo.obj)
ApocUser error LNK2005: __setmbcp already defined in LIBC.lib(mbctype.obj)
ApocUser error LNK2005: __strcats already defined in LIBC.lib(setlocal.obj)
ApocUser error LNK2005: _setlocale already defined in LIBC.lib(setlocal.obj)
ApocUser error LNK2019: unresolved external symbol _closesocket@4 referenced in function
_vio_close
ApocUser error LNK2019: unresolved external symbol _connect@12 referenced in function
_my_connect
ApocUser error LNK2019: unresolved external symbol _gethostbyname@4 referenced in function
_my_gethostbyname_r
ApocUser error LNK2019: unresolved external symbol _getpeername@12 referenced in function
_vio_peer_addr
ApocUser error LNK2019: unresolved external symbol _getservbyname@8 referenced in function
_mysql_once_init
ApocUser error LNK2019: unresolved external symbol _htons@4 referenced in function
_mysql_real_connect@32
ApocUser error LNK2019: unresolved external symbol _inet_addr@4 referenced in function
_mysql_real_connect@32
ApocUser error LNK2019: unresolved external symbol _inet_ntoa@4 referenced in function
_my_inet_ntoa
ApocUser error LNK2019: unresolved external symbol _ntohs@4 referenced in function
_mysql_once_init
ApocUser error LNK2019: unresolved external symbol _recv@16 referenced in function
_vio_read
ApocUser error LNK2019: unresolved external symbol _send@16 referenced in function
_vio_write
ApocUser error LNK2019: unresolved external symbol _setsockopt@20 referenced in function
_vio_keepalive
ApocUser error LNK2019: unresolved external symbol _shutdown@8 referenced in function
_vio_close
ApocUser error LNK2019: unresolved external symbol _socket@12 referenced in function
_mysql_real_connect@32
ApocUser error LNK2019: unresolved external symbol _WSACleanup@0 referenced in function
_my_end
ApocUser error LNK2019: unresolved external symbol _WSAGetLastError@0 referenced in
function _mysql_real_connect@32
ApocUser error LNK2019: unresolved external symbol _WSAStartup@8 referenced in function
_win32_init_tcp_ip
ApocUser fatal error LNK1120: 17 unresolved externals


I have included the mysqlclient.lib and the mysql++.lib (renamed it to mysqlpp.lib)
and it makes no difference. Any sugestions?
Thanks.
Scott Comber
Thread
Linker errorsScott Comber31 Aug
  • Re: Linker errorsWarren Young1 Sep