3 messages in com.mysql.lists.bugslinker errors in win32
FromSent OnAttachments
Calum (bulk)16 Apr 2003 14:57 
miguel solorzano16 Apr 2003 15:36 
Martin16 Apr 2003 16:32 
Subject:linker errors in win32
From:Calum (bulk) (calu@ntlworld.com)
Date:04/16/2003 02:57:54 PM
List:com.mysql.lists.bugs

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