Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
<c> linking problems with strsplit

 
Post new topic   Reply to topic Printable version
 View previous topic  Python and MySQL Post :: Post asss help  View next topic  
Author Message
gilder
Novice


Age:37
Gender:Gender:Male
Joined: Sep 02 2006
Posts: 35
Location: Finland
Offline

PostPosted: Mon Oct 02, 2006 7:31 am    Post subject: <c> linking problems with strsplit Reply to topic Reply with quote

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?
_________________
Hockey Zone
Back to top
View users profile Send private message Add User to Ignore List
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Mon Oct 02, 2006 7:42 am    Post subject: Reply to topic Reply with quote

Looks like you need to include the pthread lib.
_________________
Hyperspace Owner

Smong> so long as 99% deaths feel lame it will always be hyperspace to me
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Mon Oct 02, 2006 8:32 am    Post subject: Reply to topic Reply with quote

Follow steps 5 and 6 as written on the wiki.
_________________
ss news
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
gilder
Novice


Age:37
Gender:Gender:Male
Joined: Sep 02 2006
Posts: 35
Location: Finland
Offline

PostPosted: Mon Oct 02, 2006 9:15 am    Post subject: Reply to topic Reply with quote

Ok. It is working properly now. Thanks.
Back to top
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 47 page(s) served in previous 5 minutes.

phpBB Created this page in 0.439192 seconds : 28 queries executed (93.9%): GZIP compression disabled