# Invalid Expression

**URL:** <https://forums.digi.com/t/invalid-expression/10264>\
**Category:** Rabbit\
**Created:** [March 3, 2009, 1:40am UTC](https://forums.digi.com/t/invalid-expression/10264 "2009-03-03T01:40:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NogginBoink](https://avatars.discourse-cdn.com/v4/letter/n/9d8465/32.png) [@NogginBoink](https://forums.digi.com/u/NogginBoink)\
**Post date:** [March 3, 2009, 1:40am UTC](https://forums.digi.com/t/invalid-expression/10264/1 "2009-03-03T01:40:59Z")

</div>

I get an Invalid Expression error on line 1 of my code whenever I try to compile it.

This happens whether line 1 is a #use statement, a comment, or even a blank line.

Why in the world is Dynamic C telling me that a blank line, or a comment, is an invalid expression?

---

<div class="post-metadata">

**Author:** ![kobuseng](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@kobuseng](https://forums.digi.com/u/kobuseng)\
**Post date:** [March 3, 2009, 8:04am UTC](https://forums.digi.com/t/invalid-expression/10264/2 "2009-03-03T08:04:02Z")

</div>

The Dynamic C compiler has some shortcommmings. Sometimes when it detects an error in your code, it will not show the correct line number of the error, instead showing line 1. So in short there is somewhere in your code a error, not on line 1.

For that matter sometime (or mostly in my experience) it references the wrong library having the error.

Good luck hunting ☹
