From: Helton M. <hm...@ya...> - 2004-02-27 13:24:32
|
Hello everybody In sdcc version: SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.4.0 (Feb 27 2004) (UNIX)=20 I using a struct to acess a extern hardware (c51) typedef struct type_wiz_r_shdw{ unsigned char SRW; unsigned char SRR; unsigned char STA; }Ttype_wiz_r_shdw; Ttype_wiz_r_shdw xdata at(0x81E0)WIZ_SHDW_R_C[4]; If I read the register e.g.:=20 =09 unsigned char w3100a_select( void) { unsigned char k =3D 0; k =3D WIZ_SHDW_R_C[0].SRW; return(k); } Occurr the error compiler: ?ASlink-Warning-Undefined Global '_w3100a_select_k_1_1' referenced by module 'w3100a' But if write on this register, the compilation is ok !... someone knows, why this thing happeing, just because I access other struct's like that, but doesn't ocurr this error. regards --=20 --------------------------------------- Helton Luiz Marques T=E9c. Desenvolvimento de Sistemas MC51, AVR, PLM, C, C++ Linux registered user: #298262 --------------------------------------- |