Undetected Missing Symbol

Strange one....

Someone sent me his CIQ_LOG file. That pointed to an "Error: Symbol Not Found Error" issue. Just a typo in my code.

The variable was supposed to be "distance60" but on that line I had "distance".

I don't define/declare "distance" anywhere. But it compiled just fine. But during runtime, it aborted with Symbol Not Found, as it should.

Is this a bug that the compiler didn't detect this undefined variable?

Thanks to Jim for his recent post about using the CIQ_LOG to track down a specific line of code!

  • By default, the compiler will report cases where the symbol referenced does not occur in the API or your application code. This will catch some simple typos (distanc vs distance), but does not handle common cases where the name is valid but not in the current context. 

    If you are invoke the compiler with type checking enabled it should do a much better job, but in order for it work well, you have to add type information to your code.