AVRGCC dodawanie plikow do projektu

Mar 08, 2006 3 Replies

Witam



chcia³em sobie dodac biblioteki do projektu



w pliku makefile



dodalem w odpowiednim miejscu



SRC = odbiornik.c SRC += cc1000avr.c



w pliku odbiornik.c



dodalem



#include "CC1000.h"



i mi wywala kominukat ze drugi raz declaruje



cc1000avr.c:276: error: conflicting types for 'SetupCC1000RX' CC1000.h:79: error: previous declaration of 'SetupCC1000RX' was here .............. itd



czemu sie tak dzieje? i jak sie tego pozbyc



AzaZeL



In the darkest hour on Wed, 8 Mar 2006 20:47:50 +0100, AzaZeL <AzaZeL snipped-for-privacy@poczta.onet.pl> screamed:

W pliku CC1000.h dodaj na początku:

#ifndef CC1000_H #define CC1000_H

a na samym końcu:

#endif

Artur (nazwa oczywiście prawie dowolna)

In the darkest hour on Wed, 8 Mar 2006 22:23:08 +0100, AzaZeL <AzaZeL snipped-for-privacy@poczta.onet.pl> screamed:

6.50+VAT ((-;

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required