Jump to content

Internal Error: Var Not Found


Recommended Posts

If I write this code, All Is right

 

void foo(char &n)
{
n = 100;
}
void main(void)
{
char a = 0;
foo( a ); 
}

 

BUT , if I try this :

 

void foo(char &n, char* m)
{
n = 100;
}
void main(void)
{
char a = 0; char b=10;
foo( a,"test" ); 
}

 

Construction...

BoostC Optimizing C Compiler Version 6.55 (for PIC16 architecture)

 

bug.c

 

success

BoostLink Optimizing Linker Version 6.55

 

Failure

Internal Error: Var not found id:0x10000884:0x005:0x000000F9

 

Echec

 

I have tried some versions. In all of them, when I add a parameter before or after : char* in fonction declaration I have the Internal Error: Var not found

 

Anybody can explain me why ?

 

PS : sorry for my poor english, I'm just a french boy

Link to post
Share on other sites

why anybody can't help me ??

 

If I write this code, All Is right

 

void foo(char &n)
{
n = 100;
}
void main(void)
{
char a = 0;
foo( a ); 
}

 

BUT , if I try this :

 

void foo(char &n, char* m)
{
n = 100;
}
void main(void)
{
char a = 0; char b=10;
foo( a,"test" ); 
}

 

Construction...

BoostC Optimizing C Compiler Version 6.55 (for PIC16 architecture)

 

bug.c

 

success

BoostLink Optimizing Linker Version 6.55

 

Failure

Internal Error: Var not found id:0x10000884:0x005:0x000000F9

 

Echec

 

I have tried some versions. In all of them, when I add a parameter before or after :  char* in fonction declaration I have the Internal Error: Var not found

 

Anybody can explain me why ?

 

PS : sorry for my poor english, I'm just a french boy

Link to post
Share on other sites

We verified the issue and it happened to be a compiler bug that will be fixed in the next release. Try this workaround:

 

void foo(char &n, char* m)
{
n = 100;
}

void main(void)
{
const char *test = "test";
char a = 0; char b=10;
foo( a,test ); 
}

 

Regards,

Pavel

Link to post
Share on other sites
  • 4 months later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...