por eagle_good » 08 Nov 2006 13:31
Ola..Renie....e galera....
e apenas um erro de digitação no forum, mas no ide esta correto
e portanto continua assim ....
Warning[000] C:\Documents and Settings\Administrador\Desktop\projeto\kernel.c 36 : illegal conversion between pointer types
Warning[000] C:\Documents and Settings\Administrador\Desktop\projeto\kernel.c 38 : illegal conversion between pointe
veja o que encontrei.....na net a respeito.....
Pointers to Program Memory Space
In both compilers, a “char * “is a pointer to data memory space.
In the PICC18 compiler, a “const char *” is a pointer to program memory space.
In the MCC18 compiler, a “rom far const char *” or “rom near const *” is a pointer to program memory space, depending on if the large or small code model is used.
Be careful not to pass a program memory pointer to a function expecting a data memory pointer. In both compilers, if you do something like:
foo(“Hello There!”)
the string “Hello There!” is placed in program memory space. If the function foo() is declared as:
foo(char *s){
then the function foo() will not operate correctly as it is expecting a pointer to data memory, but it is being passed a pointer to program memory space.
mas num entendi essa......alguem poderia ser mais simples..?????
Sam eagle good