ios - implicit declaration of function '_strnicmp' is invalid in C99 -


i'm new in ios

now counter problem

#define strncasecmp _strnicmp 

it has warning:

implicit declaration of function '_strnicmp' invalid in c99 

and has error:

undefined symbols architecture armv7: "__strnicmp", referenced from:   _avi_open_input_file in avilib.o ld: symbol(s) not found architecture armv7 clang: error: linker command failed exit code 1 (use -v see invocation) 

how solve problem?

quite simply, c runtime doesn't have function _strnicmp, microsoft-specific function, not standard c function.

you should remove #define , use function strncasecmp, since strncasecmp posix function, , ios posix-compliant.


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -