Re: Getting started with MCC - can't build blank project
I was able to solve that issue by going into the project properties and unchecking "Use legacy libc" under the XC16 options. The next issue cropped up shortly afterwards. I tried adding a TMR1 module in MCC and got the error
"In function `_SYSTEM_Initialize':
: undefined reference to `_TMR1_Initialize'" when I tried to build the project.
I found a quick and dirty fix for this is to add "include #"tmr1.c"" to mcc.c. I don't know if this results in working code but it compiles. But I'd rather find the elegant solution.
It seems like the way it should work is mcc.c has mcc.h included, which includes tmr1.h, which has the declaration for TMR1_Initialize(), but somehow this isn't what the compiler sees.
Thanks in advance for your input.