Raised This Month: $ Target: $400
 0% 

Thread!


Post New Thread Reply   
 
Thread Tools Display Modes
sn4k3
Senior Member
Join Date: Nov 2005
Old 08-03-2007 , 15:49   Re: Thread!
Reply With Quote #11

how can i include phreads-win32 in a mysql project???


with pthreads-win32.lib:

Code:
1>Compiling...
1>sourceutils_freelib.cpp
1>Linking...
1>mysqlclient.lib(my_winthread.obj) : error LNK2005: _pthread_exit already defined in pthread.lib(pthread.obj)
1>mysqlclient.lib(my_winthread.obj) : error LNK2005: _pthread_create already defined in pthread.lib(pthread.obj)
1>mysqlclient.lib(my_wincond.obj) : error LNK2005: _pthread_cond_init already defined in pthread.lib(pthread.obj)
1>mysqlclient.lib(my_wincond.obj) : error LNK2005: _pthread_cond_destroy already defined in pthread.lib(pthread.obj)
1>mysqlclient.lib(my_wincond.obj) : error LNK2005: _pthread_cond_timedwait already defined in pthread.lib(pthread.obj)
1>mysqlclient.lib(my_wincond.obj) : error LNK2005: _pthread_cond_signal already defined in pthread.lib(pthread.obj)
1>mysqlclient.lib(my_wincond.obj) : error LNK2005: _pthread_cond_broadcast already defined in pthread.lib(pthread.obj)
1>mysqlclient.lib(my_wincond.obj) : error LNK2005: _pthread_attr_init already defined in pthread.lib(pthread.obj)
1>mysqlclient.lib(my_wincond.obj) : error LNK2005: _pthread_attr_setstacksize already defined in pthread.lib(pthread.obj)
1>mysqlclient.lib(my_wincond.obj) : error LNK2005: _pthread_attr_destroy already defined in pthread.lib(pthread.obj)
1>mysqlclient.lib(my_wincond.obj) : error LNK2005: _pthread_cond_wait already defined in pthread.lib(pthread.obj)
1>   Creating library ../Release/win32/sourceutils_freelib/sourceutils_freelib.lib and object ../Release/win32/sourceutils_freelib/sourceutils_freelib.exp
1>../Release/win32/sourceutils_freelib.dll : fatal error LNK1169: one or more multiply defined symbols found
but without that .lib linker give external errors

in a project without mysql pthreads-win32 works
sn4k3 is offline
Send a message via MSN to sn4k3
API
Veteran Member
Join Date: May 2006
Old 08-03-2007 , 17:41   Re: Thread!
Reply With Quote #12

You need to research some documentation on the pthread library, there should be some instructions on how to link it.
__________________
API is offline
Send a message via AIM to API
sn4k3
Senior Member
Join Date: Nov 2005
Old 08-03-2007 , 19:02   Re: Thread!
Reply With Quote #13

Quote:
Originally Posted by pimpinjuice View Post
You need to research some documentation on the pthread library, there should be some instructions on how to link it.
not that

i link that well

with the #define PTW_BUILD_STATIC

in sourceutils.dll works (not have any mysql)
in sourceutils_freelib.dll not work (have mysql) i think mysql is defining that simbols too

but if i remove thread.lib i get unresolved problems from Threads-win32 !
sn4k3 is offline
Send a message via MSN to sn4k3
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode