Hi to all, I have in use the EC++ Compiler from Tasking and want to change my whole EC++ project to KEIL. I tried to compile some files with the KEIL EC166 but I always get the following error: ------------------ argument of type "char *" is incompatible with parameter of type "signed char *" ------------------ I give you a short eyample: #include <string.h> int func1() { char sHlp[10]; return strlen(sHlp); } The error is shown at the bold line. Could it be that the KEIL EC166 has the default 'char' defined as 'unsigned char'? And if this is so, is there a possibility to change this with a commandline-option or #pragma? Thank you for your help! Franz
My following routine goes well:
#include "string.h" #include "reg164.h" int func(){ char txt[10]; return strlen(txt); } void main(){ func(); while(1){;} }
Hi Perry, Do you rellay use the EC166-compiler (file ending .cpp - EC++)? best regards Franz