After inclusion of all c and header file following error generates
../USB_HID_MSD_H/fileio.h:29:27: fatal error: fileio_config.h: No such file or directory
../USB_HID_MSD_H/fileio.h:29:27: fatal error: fileio_media.h: No such file or directory
I'm assuming you started with with an mla project for a device in the same family, namely exp16_pic24fj256gb210_pim.x, right?
Then you compiled it (with no changes) to confirm that it would build withot errors, right?
You copied the files to your own directory or directories and added them into a project that you created for your device, right?
Well, here's the thing...
Just putting the files into your MPLABX project is not enough to tell XC16 where to find everything. Really. The IDE is separate from the compiler.
The IDE invokes the compiler for your project's source files, wherever they are, so that's OK, but the IDE does not
automatically tell the compiler where to find header files that are included in the source files.
If a particular header file for your project is in the same physical directory as a C file that includes it, that's OK. Otherwise, you have to tell the compiler where to look.
Right click on the project icon in the "Projects" window and go to the xc16-gcc->Preprocessing and messages
Click on the little "..." box at the end of the C include directories
line. Remove old items that show relative paths (that were valid for the original project but not for your new project) and use "Browse" to find the directories in paths relative to your current project's directory and add them.
post edited by davekw7x - 2017/11/25 09:49:04