I installed again Hi-Tech C and now all is ok, thanks Renzo 2011/3/17 Oli Glaser : > On 17/03/2011 08:27, RG wrote: >> I followed the suggestion of =A0 Kerry Wentworth: >> =A0 Change >>>>> >>> >>>>> >>> =A0#include >>>>> >>> >>>>> >>> =A0to >>>>> >>> >>>>> >>> =A0#include "p18f13k50.h" >> But using #include "htc.c" instead there is always an error: Error >> [730] d:\Programmi\HI-TECH >> Software\PICC-18\PRO\9.65\include\pic18f1xk50.h; 16. bad op "]". >> >> Problably there are something wrong in code for this processor. > > It should be htc.h not htc.c > Something does not quite add up here - out of curiosity I just tried > compiling =A0here using 18F13K50 and Hi-Tech v9.63, and it works fine wit= h > . My code was literally: > #include > void main() > { > } > > Alternatively for C18: > > #include > void main() > { > } > > Are you sure you have the Language Toolsuite set correctly when you try > the different headers? > For Hi-Tech you can use for all > For C18 you can use for all > > I would try starting with a blank project, and rather than copying any > missing headers into your project directory, set the project search > directories (include, linker etc) correctly. > If it still does not work, then maybe try reinstalling Hi-Tech. > > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > --=20 Renzo --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .