strcasecmp()
strcasecmp()
Plz, add strcasecmp() to the newlib. It already present in clib2, but also necessary to have it in newlib as well. I can of course create my own custom one, but that function from time to time need it.
- salass00
- AmigaOS Core Developer
- Posts: 530
- Joined: Sat Jun 18, 2011 3:12 pm
- Location: Finland
- Contact:
Re: strcasecmp()
The function strcasecmp() is implemented in newlib but is disabled for __STRICT_ANSI__ code.
If your code is compiled with -std=c99 you will want to change it to -std=gnu99.
If your code is compiled with -std=c99 you will want to change it to -std=gnu99.
Re: strcasecmp()
I tried to compile it with g++ and std=c++11 , so:
> ppc-amigaos-g++ -std=c++11 -c test.c -o test.o
test.c: In function 'int main()':
test.c:30:19: error: 'strcasecmp' was not declared in this scope
And if:
> ppc-amigaos-g++ -std=c++11 -std=gnu99 -c test.c -o test.o
cc1plus: warning: command line option '-std=gnu99' is valid for C/ObjC but not for C++
But i need -std=c++11.
> ppc-amigaos-g++ -std=c++11 -c test.c -o test.o
test.c: In function 'int main()':
test.c:30:19: error: 'strcasecmp' was not declared in this scope
And if:
> ppc-amigaos-g++ -std=c++11 -std=gnu99 -c test.c -o test.o
cc1plus: warning: command line option '-std=gnu99' is valid for C/ObjC but not for C++
But i need -std=c++11.
- salass00
- AmigaOS Core Developer
- Posts: 530
- Joined: Sat Jun 18, 2011 3:12 pm
- Location: Finland
- Contact:
Re: strcasecmp()
Use -std=gnu++11 instead.