Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

‘strcasecmp’ was not declared in this scope

Tags:

c++

I am trying to build a source code called lipiTk

I have lots of errors like this:

Documents/lipi/lipi/src/reco/shaperec/activedtw/ActiveDTWShapeRecognizer.cpp:1222:78: 
 error: ‘strcasecmp’ was not declared in this scope

What should I do, there is too many cpp file in the code that gives similar errors. I do not think i can test with writing include string.h into every cpp file that gives error, might the problem be about my compiler?

I am on Ubuntu and GCC is 4.5.

My sw configuration is upper than lipitk needs as I read in manual.

like image 842
merveotesi Avatar asked Nov 27 '22 09:11

merveotesi


1 Answers

I think that it may be doing

#include <string>

The errors should be fixed if you change it to

#include <strings.h>
like image 193
Ed Heal Avatar answered Dec 08 '22 14:12

Ed Heal