Page 1 of 1

xc16 + mTouch -> fatal error: GenericTypeDefs.h: No such fil

PostPosted: Tue Feb 09, 2016 5:45 pm
by jjg
I am trying to upgrade a project from PIC18 to PIC24.

Before working on my project, I want to compile the "Button Demo PIC24F" in the "mTouch Capacitive Touch Library" Version 1.43.00 to make sure my setup is working. My PIC18 project uses mTouch.

The installed compiler is XC16 v1.25

I replaced the #include "Compiler.h" with #include "xc.h".
I copied GenericTypeDefs.h to C:\Program Files (x86)\Microchip\xc16\v1.25\include

I get the following error when i try to compile:
"C:\Program Files (x86)\Microchip\xc16\v1.25\bin\xc16-gcc.exe" "../../../../Microchip/mTouchCap/PIC18F PIC24F PIC24H dsPIC Library/mTouchAcquistion.c" -o build/default/production/_ext/276075077/mTouchAcquistion.o -c -mcpu=24FJ128GB106 -MMD -MF "build/default/production/_ext/276075077/mTouchAcquistion.o.d" -g -omf=elf -O0 -I".." -I"../../../../Microchip/Include" -I"../../Configurations/PIC24F_mTouch_Eval_Board" -I"../../../../Microchip/Include/mTouchCap/PIC18F PIC24F PIC24H dsPIC Library" -msmart-io=1 -Wall -msfr-warn=off -fno-ivopts
In file included from ../../../../Microchip/mTouchCap/PIC18F PIC24F PIC24H dsPIC Library/mTouchAcquistion.c:56:0:
../../../../Microchip/Include/mTouchCap/PIC18F PIC24F PIC24H dsPIC Library/mTouch.h:56:29: fatal error: GenericTypeDefs.h: No such file or directory
compilation terminated.


What am I missing? Any suggestions would be appreciated.

Regards,
jjg

Re: xc16 + mTouch -> fatal error: GenericTypeDefs.h: No such

PostPosted: Wed Feb 10, 2016 3:05 am
by AussieSusan
My guess is that the #include file path in 'mTouch.h' is not quite right.
The error message is telling you where it is looking for the .h file so you will need to adjust that to whatever is correct.
Quite often you can just use the file name itself without a file path and let the compiler search lists do the rest.
Susan