cancel
Showing results for 
Search instead for 
Did you mean: 

SPC5STUDIO multiple definition ERROR

MFARA.1
Associate II

Hi,

I need to use a header file in two source file, but I have an error :

0693W00000DmtuRQAR.png

1 ACCEPTED SOLUTION

Accepted Solutions

Code it properly so the definitions are in a single C file, and the prototypes are in the include files. Use extern if appropriate.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

2 REPLIES 2

Code it properly so the definitions are in a single C file, and the prototypes are in the include files. Use extern if appropriate.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
MFARA.1
Associate II

Dear Tesla DeLorean,

Thank you,I used extern and it solved.

Best Regards