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

(instructions, reset, WDT, specifications...) PIC17Cxx, PIC18Fxxx

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

Postby jjg » Tue Feb 09, 2016 5:45 pm

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.

Posts: 1
Joined: Tue Feb 09, 2016 5:42 pm
PIC experience: Professional 1+ years with MCHP products

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

Postby AussieSusan » Wed Feb 10, 2016 3:05 am

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.
Verified identity
Posts: 97
Joined: Mon Jun 16, 2014 4:45 am
PIC experience: Experienced Hobbyist

Return to 16-Bit Core

Who is online

Users browsing this forum: No registered users and 1 guest