If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > testing boyer moore algo

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-14-07, 07:20
Najmi Najmi is offline
Registered User
 
Join Date: May 2007
Posts: 2
testing boyer moore algo

hi,

i had problem when i ran this boyer moore code:
http://codecodex.com/wiki/index.php?...arch_algorithm

PHP Code:
gcc myboyer.-o myboyer
myboyer
.cIn function ‘boyermoore_needlematch’:
myboyer.c:15error‘ssize_t’ undeclared (first use in this function)
myboyer.c:15error: (Each undeclared identifier is reported only once
myboyer
.c:15error: for each function it appears in.)
myboyer.c:15errorexpected ‘;’ before ‘virtual_begin’
myboyer
.c:16errorexpected ‘;’ before ‘ignore’
myboyer
.c:17error‘virtual_begin’ undeclared (first use in this function)
myboyer.c:17error‘ignore’ undeclared (first use in this function)
myboyer.cAt top level:
myboyer.c:28errorexpected ‘)’ before ‘a’
myboyer
.cIn function ‘memmem_boyermoore’:
myboyer.c:38error‘ssize_t’ undeclared (first use in this function)
myboyer.c:38errorexpected ‘;’ before ‘occ’
myboyer
.c:46error‘occ’ undeclared (first use in this function) 

what i have to do?
I am newbie in C programming.
basically not a programmer.

thanks.
Reply With Quote
  #2 (permalink)  
Old 05-20-07, 03:48
wah_wah_69 wah_wah_69 is offline
Registered User
 
Join Date: Apr 2007
Posts: 10
#include <unistd.h> for ‘ssize_t’ undeclared.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On