Required Converting C code to Hex file

Thread Starter

AhmadAliirfan

Joined May 26, 2019
4
I've been trying to convert the following attached code to a hex file and am unable to do so the code is fine but the compiler gives me errors regarding the make file or the include xc.h librairy the rar file for the code is attached. Need it fast
 

Attachments

AlbertHall

Joined Jun 4, 2014
12,343
For XC8 , tell the compiler to use the C90 standard.
production / set project configuration / customize
under categories select XC8 global properties
next to option categories select global options
Then select C standard C90 and apply
 

Ian Rogers

Joined Dec 12, 2012
1,136
If you look at the errors this was built previously on an E drive.. If I were you I would start a new project and copy the C code into it.

Your directory is C:\users........ The code you are using was in an E:\work..... This means legacy directories within the build is messing you up..
 

Thread Starter

AhmadAliirfan

Joined May 26, 2019
4
If you look at the errors this was built previously on an E drive.. If I were you I would start a new project and copy the C code into it.

Your directory is C:\users........ The code you are using was in an E:\work..... This means legacy directories within the build is messing you up..
Ok thanks ill try that
 
Top