Page 1 of 1

Link error

PostPosted: Sun Jul 07, 2019 11:07 pm
by PICuser
I'm using MPLAB X IDE v3.15 with a 16F73.
I have encountered a link error I can't figure out.

Error - could not find definition of symbol 'init_uart' in file './build/default/production/Demod.o'.

I have studied the user guide for the linker but was unsuccessful. What is confusing is that the symbol is not used in the source file. In desperation I renamed the symbol so now the original is nowhere in any source file. But it still causes that link error. If anyone can explain what is happening here I sure would appreciate it. Thank you in advance.

Re: Link error

PostPosted: Mon Jul 08, 2019 2:44 am
by ric
You don't mention, are you working in assembler, or in C?
Coding directly, or using something like MCC (although I doubt that supports old chips like the 16F73)

Can you zip up your whole project and post it here?

Re: Link error

PostPosted: Mon Jul 08, 2019 3:34 am
by AussieSusan
Wild guess - it is being referenced from an include file?
If you have updated the source files, are you sure that they have all been recompiled?
Susan

Re: Link error

PostPosted: Mon Jul 08, 2019 10:30 pm
by PICuser
Thanks for the response. It was in the include file.

Re: Link error

PostPosted: Tue Jul 09, 2019 12:17 am
by ric
So is your problem solved?