я столкнулся с этой ошибкой в построении моего проекта с помощью v-USB library.followed моего код:main.c: 19: неопределенная ссылка на `USBINIT«и неопределенную ссылку на `usbPoll»
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/wdt.h>
#include "usbdrv.h"
#include <util/delay.h>
USB_PUBLIC uchar usbFunctionSetup(uchar data[8]) {
return 0; // do nothing for now
}
int main() {
uchar i;
wdt_enable(WDTO_1S); // enable 1s watchdog timer
usbInit();
usbDeviceDisconnect(); // enforce re-enumeration
for(i = 0; i<250; i++) { // wait 500 ms
wdt_reset(); // keep the watchdog happy
_delay_ms(2);
}
usbDeviceConnect();
sei(); // Enable interrupts after re-enumeration
while(1) {
wdt_reset(); // keep the watchdog happy
usbPoll();
}
return 0;
}
и это относительная часть в usbdrv.h:
#ifndef USB_PUBLIC
#define USB_PUBLIC
#endif
USB_PUBLIC void usbInit(void);
USB_PUBLIC void usbPoll(void)
Может кто-нибудь мне помочь?