Re: Strange Compiler Errors
Tom Collins <tom-lnEA/wrDJtNWk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.hardware.rabbit-semiconductor |
|---|---|
| Message-ID | <[email protected]> |
This will happen if you don't reference qd_init() in your program, but try to reference the other symbols defined after EndHeader. -Tom (Sent from my phone; forgive my brevity.) > On Nov 8, 2013, at 11:59 AM, Steve Trigero <seecwriter-/[email protected]> wrote: > > Today, I am getting a compiler error about some variables declared in the DC libraries: > > line 33 : ERROR R3000.LIB : Undefined global label qd_count > line 35 : ERROR R3000.LIB : Undefined global label qd_isrflag > > I get the same errors with DC v9.25 and v9.62. And stop me if you've heard this before, but, > nothing has changed in the code. I simply opened the project and compiled it. > > Copy/Paste from R3000.lib, DC 9.25: > > /*** BeginHeader qd_init */ > nodebug void qd_init(int iplevel); > xmem void qd_isrinit(); > void qd_isr(); > extern long qd_count[]; > extern char qd_errorflags[]; > extern char qd_isrflag; > /*** EndHeader */ > long qd_count[2]; > char qd_errorflags[2]; > char qd_isrflag; > > It's interesting that the variables are not listed in the BeginHeader comment. I thought that was a requirement. > > But this has been working for years. Why now? > > Steve >