Microchip's assembler uses a C-like preprocessor since a long time, but traditionally assemblers didn't use C's preprocessor. Now it seems that some assemblers have an option to use it. ".h" files can be used with said assemblers only if the file uses only constructs that the assembler can understand or preprocessor directives. The fact that the assembler is treating "#" as a comment suggests that it has the C preprocessor turned off. Best regards, Isaac Em 5/6/2012 10:02, Ruben J=F6nsson escreveu: > My thought first too but then I looked in the assembler examples in the M= PLAB=20 > C32 Suite which indeed does include ".h" files. > > /Ruben > >> At first it seemed that you were using C, but now it is clear that you >> are using assembly. >> >> The files with extension ".h" are intended for the C language, the >> assembler will not understand them. >> >> >> Isaac >> =20 >> >> >> Em 5/6/2012 08:24, Electron escreveu: >>> PS: it appears that: >>> >>> #include >>> >>> is not even included, as # is used for comments (!).. but if I open the >> p32xxxx.h >>> file with a text editor I can see that is full of such #include's .. th= is is >> puzzling: >>> different assembler is in use, options, or what? >>> >>> Thanks, >>> Mario >>> >>> >>>> Hello, >>>> I've tried as: >>>> >>>> #include >>>> >>>> and >>>> >>>> #include "p32xxxx.h" >>>> >>>> and >>>> >>>> .include >>>> >>>> and >>>> >>>> .include "p32xxxx.h" >>>> >>>> but it doesn't include it.. it includes it only if I use the full path= =20 >>>> and use / instead of \ (I'm on a Windows machine), but then it fails=20 >>>> on the sub-includes of course. >>>> >>>> I've Set The Language Tool Locations, default search path for=20 >>>> Assembler Include, where p32xxxx.h is physically located ( in my=20 >>>> system it is C:\Utility\Coding\MPLab\MPLAB C32 Suite\pic32mx\include )= =20 >>>> with and without a trailing ; but it doesn't include it. :( >>>> >>>> What can I do more? >>>> >>>> Thanks, >>>> Mario >> --=20 >> http://www.piclist.com PIC/SX FAQ & list archive >> View/change your membership options at >> http://mailman.mit.edu/mailman/listinfo/piclist > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Ruben J=F6nsson > AB Liros Electronic > Box 9124 > 200 39 Malm=F6 Sweden > www.liros.se > Tel +46 40142078 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .