linker errors in win32

I am linking a Win32 project using MSVC++ 6.0 and get the following:

Linking...
pthreadVC.lib(pthreadVC.dll) : error LNK2005: _pthread_create already
defined in mysqlclient.lib(my_winthread.obj)
Debug/wordnet.exe : fatal error LNK1169: one or more multiply defined
symbols found
Error executing link.exe.

This happens in mysql 4.0.12/3.23.56 with prebuilt libs from both debug
and opt.

The problem appears to be that my_winthread.obj exports _pthread_create.
However, the Red Hat pthreads library, pthreadVC.lib, also exports
this symbol. Hence, the libraries are incompatible?

Calum


--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=gcdmb-bugs [at] m.gmane.org
calum.bulk [ Mi, 16 April 2003 23:58 ] [ ID #67606 ]

Re: linker errors in win32

So if you kill off the exported reference for pthread_create in my_winthread
and recompile
Everything works???
-Martin
----- Original Message -----
From: "Calum (bulk)" <calum.bulk [at] ntlworld.com>
To: <bugs [at] lists.mysql.com>
Sent: Wednesday, April 16, 2003 2:58 PM
Subject: linker errors in win32


> I am linking a Win32 project using MSVC++ 6.0 and get the following:
>
> Linking...
> pthreadVC.lib(pthreadVC.dll) : error LNK2005: _pthread_create already
> defined in mysqlclient.lib(my_winthread.obj)
> Debug/wordnet.exe : fatal error LNK1169: one or more multiply defined
> symbols found
> Error executing link.exe.
>
> This happens in mysql 4.0.12/3.23.56 with prebuilt libs from both debug
> and opt.
>
> The problem appears to be that my_winthread.obj exports _pthread_create.
> However, the Red Hat pthreads library, pthreadVC.lib, also exports
> this symbol. Hence, the libraries are incompatible?
>
> Calum
>
>
> --
> MySQL Bugs Mailing List
> For list archives: http://lists.mysql.com/bugs
> To unsubscribe: http://lists.mysql.com/bugs?unsub=mgainty [at] hotmail.com
>
>

--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=gcdmb-bugs [at] m.gmane.org
Martin Gainty [ Do, 17 April 2003 01:33 ] [ ID #67607 ]

Re: linker errors in win32

At 22:58 16/04/2003 +0100, Calum (bulk) wrote:
Hi,

This list is dedicated to bug reports with repeatable test cases.

This is not case with your message, which is a case of MySQL
library linkage with third libraries with unknown build process.


>I am linking a Win32 project using MSVC++ 6.0 and get the following:
>
>Linking...
>pthreadVC.lib(pthreadVC.dll) : error LNK2005: _pthread_create already
>defined in mysqlclient.lib(my_winthread.obj)
>Debug/wordnet.exe : fatal error LNK1169: one or more multiply defined
>symbols found
>Error executing link.exe.
>
>This happens in mysql 4.0.12/3.23.56 with prebuilt libs from both debug
>and opt.
>
>The problem appears to be that my_winthread.obj exports
>_pthread_create. However, the Red Hat pthreads library, pthreadVC.lib,
>also exports this symbol. Hence, the libraries are incompatible?
>
>Calum
>
>
>--
>MySQL Bugs Mailing List
>For list archives: http://lists.mysql.com/bugs
>To unsubscribe: http://lists.mysql.com/bugs?unsub=3Dmiguel [at] mysql.com

--
Regards,
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Miguel Angel Sol=F3rzano <miguel [at] mysql.com>
/ /|_/ / // /\ \/ /_/ / /__ S=E3o Paulo - Brazil
/_/ /_/\_, /___/\___\_\___/
<___/ www.mysql.com


--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=3Dgcdmb-bugs [at] m.gmane.org
miguel solorzano [ Do, 17 April 2003 00:37 ] [ ID #67608 ]
Datenbanken » gmane.comp.db.mysql.bugs » linker errors in win32

Vorheriges Thema: Error compiling Mysql 4.0.12 on Solaris 2.8 with GNU sed
Nächstes Thema: IMORTANT INFORMATION REQUEST