Jump to content
Sign in to follow this  
gbMP

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

Share this post


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

Share this post


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

Share this post


Link to post
Share on other sites

Fixed in V6.60.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×
×
  • Create New...