#147671 - load*,8,1 - Tue Dec 25, 2007 10:57 pm
I think this might be a bug in the DevKitPro toolchain:
Create an empty file called "string.h" in the "include" folder of a template project. Then #include <cstring>.
These are the error messages I'm getting. I guess that instead of including the string.h of the libraries it is including my own string.h.
I know it's kinda unusual to make a file called like a lib. But that's a filename in the project I'm porting.
Create an empty file called "string.h" in the "include" folder of a template project. Then #include <cstring>.
These are the error messages I'm getting. I guess that instead of including the string.h of the libraries it is including my own string.h.
Code: |
/usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.2/../../../../include/c++/4.1.2/cstring:80: error: '::memcpy' has not been declared
/usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.2/../../../../include/c++/4.1.2/cstring:81: error: '::memmove' has not been declared /usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.2/../../../../include/c++/4.1.2/cstring:82: error: '::strcpy' has not been declared /usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.2/../../../../include/c++/4.1.2/cstring:83: error: '::strncpy' has not been declared /usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.2/../../../../include/c++/4.1.2/cstring:84: error: '::strcat' has not been declared /usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.2/../../../../include/c++/4.1.2/cstring:85: error: '::strncat' has not been declared /usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.2/../../../../include/c++/4.1.2/cstring:86: error: '::memcmp' has not been declared /usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.2/../../../../include/c++/4.1.2/cstring:87: error: '::strcmp' has not been declared /usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.2/../../../../include/c++/4.1.2/cstring:88: error: '::strcoll' has not been declared /usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.2/../../../../include/c++/4.1.2/cstring:89: error: '::strncmp' has not been declared /usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.2/../../../../include/c++/4.1.2/cstring:90: error: '::strxfrm' has not been declared /usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.2/../../../../include/c++/4.1.2/cstring:91: error: '::strcspn' has not been declared /usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.2/../../../../include/c++/4.1.2/cstring:92: error: '::strspn' has not been declared /usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.2/../../../../include/c++/4.1.2/cstring:93: error: '::strtok' has not been declared /usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.2/../../../../include/c++/4.1.2/cstring:94: error: '::memset' has not been declared /usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.2/../../../../include/c++/4.1.2/cstring:95: error: '::strerror' has not been declared /usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.2/../../../../include/c++/4.1.2/cstring:96: error: '::strlen' has not been declared /usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.2/../../../../include/c++/4.1.2/cstring:98: error: '::memchr' has not been declared /usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.2/../../../../include/c++/4.1.2/cstring: In function 'void* std::memchr(void*, int, size_t)': /usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.2/../../../../include/c++/4.1.2/cstring:102: error: invalid conversion from 'const void*' to 'void*' /usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.2/../../../../include/c++/4.1.2/cstring:102: error: initializing argument 1 of 'void* std::memchr(void*, int, size_t)' /usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.2/../../../../include/c++/4.1.2/cstring: At global scope: /usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.2/../../../../include/c++/4.1.2/cstring:104: error: '::strchr' has not been declared /usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.2/../../../../include/c++/4.1.2/cstring:110: error: '::strpbrk' has not been declared /usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.2/../../../../include/c++/4.1.2/cstring:116: error: '::strrchr' has not been declared /usr/local/devkitPro/devkitARM/lib/gcc/arm-eabi/4.1.2/../../../../include/c++/4.1.2/cstring:122: error: '::strstr' has not been declared |
I know it's kinda unusual to make a file called like a lib. But that's a filename in the project I'm porting.