Hi guys,
I'm receiving the Error: 'L6200E: Symbol multiply defined'.
I understand one workaround is to include externs, however this is unideal. With most compilers/linkers something such as:
#ifndef bla #define bla
// Content
#endif
Would prevent double inclusion, however it doesn't appear to work with Keil.
Any ideas on a similar solution?
Many thanks
"With most compilers"? You seen any C compiler that does not support the use of inclusion guards in header files?
You have given too little information, but you definitely seem to do something wrong.
quoter@ Would prevent double inclusion, however it doesn't appear to work with Keil.
that does work on keil.
wothca probably got is function in two .c file with the same name.
That would also do it.
And note that it's not just functions - anything defined at file scope is global unless you specifically declare it as static