Hi all,
I have this code: stripped to illustrare the problem.
The main .c
#include <PIC/PIC16F874.H>
#include "LCD_Driver2.h"
// main body
void main(){
LCD_SetUp();
}
The second .c
#include <PIC/PIC16F874.H>
void LCD_Setup(void)
{
PORTD = PORTA;
}
the .h
As you probably have noticed I made A typing error in the second .c file i.e LCD_Setup instead of LCD_SetUp as in the header.
Now when I compile this I get this report
-------------- Build: Release in SDCC_PIC_test ---------------
Compiling: LCD_Driver2.c
Linking native: bin\Release\SDCC_PIC_test
message: using default linker script "C:\Program Files\gputils\lkr\16f874.lkr"
error: missing definition for symbol "_LCD_SetUp", required by "obj\Release\SDCC_PIC_Using.rel"
Process terminated with status 1 (0 minutes, 1 seconds)
0 errors, 0 warnings
The linker has reported it as an error but Code::Blocks accumulated report does notice it with a red banner but does not raise the count.
My system:
SDCC version 2.9 under Code::Blocks version 8.02 on WindowsXP.
With best regards.
Frans.