> A fairly basic problem.. > when I try to compile for a PIC16, I get a load of "invalid > preprocessing directive" messages for > #bit > #int_RB > #asm > #endasm > #build > #rom > > HELP...sorry, I'm losing it !
Porting from CCS, aren't you? Maybe you should have a look at http://particle.teco.edu/software/sdcc/sdccmigration.html to get you around the compiler differences. Or---maybe---you should start reading the manuals... SDCC/pic16 has no such preprocessing directives as stated above. #bit is unsupported; use struct { unsigned bit0:1; unsigned bit1:1; unsigned bit2:1; unsigned bit3:1; unsigned bit4:1; unsigned bit5:1; unsigned bit6:1; unsigned bit7:1; } my_bit_field; instead. #int_RB roughly translates to using macros from pic16/signal.h---read there! #asm ... #endasm translates to __asm ... __endasm; (including the semicolon). I do not know what #build and #rom are supposed to do---these are probably unsupported or handled completely differently. Feel free to ask more specific questions... later. Regards, Raphael Neider ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user