This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Why the external symbol is unresolved? What can I do?

I want to use "far" define a variable. I have added the file "L51_BANK.A51" into my project, and select the LX51 instead of BL51,and AX51 instead of A51. I modify the file "L51_BANK.A51" as following:

?B_NBANKS       EQU  4
?B_MODE         EQU  1
?B_RTX          EQU  0
?B_VAR_BANKING  EQU  1
And add this text into user classes at page of "LX51 locate":

XDATA (X:0x0-X:0x7FFF),CODE(C:0x0-C:0x7FFF),
HDATA (X:0x028000-X:0x02FFFF,
X:0x038000-X:0x03FFFF,
X:0x048000-X:0x04FFFF,
X:0x058000-X:0x05FFFF,
X:0x068000-X:0x06FFFF,
X:0x078000-X:0x07FFFF,
X:0x088000-X:0x08FFFF) ,
HCONST (B1:0x8000-B1:0xFFFF,
B2:0x18000-B2:0x1FFFF,
B3:0x28000-B3:0x2FFFF,
B4:0x38000-B4:0x3FFFF,
B5:0x48000-B5:0x4FFFF,
B6:0x58000-B6:0x5FFFF,
B7:0x68000-B7:0x6FFFF)

But when I compile the project, it output many errors as following:

*** ERROR L127: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: ?C?CLDOPTR
MODULE: CommuDo.obj (COMMUDO)
*** ERROR L128: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: ?C?CLDOPTR
MODULE: CommuDo.obj (COMMUDO)
ADDRESS: 1003911H

It's puzzled that I can't find the symbol of ?C?CLDOPTR in my program!

Why it shows these errors? What can I do?

REGARDS,
liao