Server Help

ASSS Questions - <c> linking problems with strsplit

gilder - Mon Oct 02, 2006 7:31 am
Post subject: <c> linking problems with strsplit
When i use strsplit() function in my code, i got a linker error:
Code: Show/Hide
[Linker error] undefined reference to `strsplit'


When add util.c, where strsplit is defined, to my Dev C++ 4.9.9.2 project, i get following error:
Code: Show/Hide
[Linker error] undefined reference to `_imp__pthread_mutex_init'
[Linker error] undefined reference to `_imp__pthread_cond_init'
[Linker error] undefined reference to `_imp__pthread_mutex_destroy'

plus 16 other errors.

Am i linking util.c to my project correctly?
Dr Brain - Mon Oct 02, 2006 7:42 am
Post subject:
Looks like you need to include the pthread lib.
Smong - Mon Oct 02, 2006 8:32 am
Post subject:
Follow steps 5 and 6 as written on the wiki.
gilder - Mon Oct 02, 2006 9:15 am
Post subject:
Ok. It is working properly now. Thanks.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group