abracadabra
Joined: 27 Dec 2012 Posts: 24 Location: Paris
|
Posted: Sun Jun 01, 2014 3:33 pm Post subject: error with Aliases |
|
|
Hi.
I wrote the beginning of the program:
Code: |
$regfile = "m32def.dat"
Lcdport Alias Portc
R_s Alias Portc.4
E_e Alias Portc.5
D_b4 Alias Portc.0
D_b5 Alias Portc.1
D_b6 Alias Portc.2
D_b7 Alias Portc.3
'__________________
Config Lcdport = Output
Config Lcdpin = Pin , Rs = R_s , E = E_e , Db4 = D_b4 , Db5 = D_b5 , Db6 = D_b6 , Db7 = D_b7
Config Lcdmode = Port
Config Lcd = 16 * 2
Cursor Off
Cls
|
whith no error if i compiling.
His name is "c:\bascom\toto.bas"
if I write this early in another program:
Code: |
$include "C:\bascom\toto.bas"
dim x as byte
...
|
compilation is with errors:
Code: |
Error : 101 Line : 18 Can't find HW-register [DDRC] , in File : C:\bascom\toto.bas
Error : 222 Line : 19 Illegal character [expected (, got '' [PORTC]] , in File : C:\bascom\toto.bas
Error : 222 Line : 19 Illegal character [expected (, got '' [PORTC]] , in File : C:\bascom\toto.bas
Error : 222 Line : 19 Illegal character [expected (, got '' [PORTC]] , in File : C:\bascom\toto.bas
Error : 222 Line : 19 Illegal character [expected (, got '' [PORTC]] , in File : C:\bascom\toto.bas
Error : 222 Line : 19 Illegal character [expected (, got '' [PORTC]] , in File : C:\bascom\toto.bas
Error : 222 Line : 19 Illegal character [expected (, got '' [PORTC]] , in File : C:\bascom\toto.bas
|
What is the error?
Thank you
(BASCOM-AVR version : 2.0.7.0 , Latest : 2.0.7.7 ) |
|