Open GoogleCodeExporter opened 8 years ago
Нашел вроде как решение, позаворачивать
все содержимое хидеров библиотеки юсб в:
#ifdef __cplusplus
extern "C" {
#endif
...
#ifdef __cplusplus
}
#endif
Original comment by nikll....@gmail.com
on 29 Jan 2014 at 12:42
[deleted comment]
When I try to compile, the first error is the same. Then I put the last comment
on usb.h and I have another error.
-------- begin --------
arm-none-eabi-gcc (4.8.2-14ubuntu1+6) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[Linking] LogicDiscovery.elf
usb.o: In function `usbInit':
/home/usuario/logic/logic/usb.cpp:34: undefined reference to
`USBD_Init(USB_OTG_handle*, USB_OTG_CORE_ID_TypeDef, _Device_TypeDef*,
_Device_cb*, _USBD_USR_PROP*)'
usb.o: In function `OTG_HS_IRQHandler':
/home/usuario/logic/logic/usb.cpp:211: undefined reference to
`USBD_OTG_ISR_Handler(USB_OTG_handle*)'
usb.o: In function `OTG_FS_IRQHandler':
/home/usuario/logic/logic/usb.cpp:205: undefined reference to
`USBD_OTG_ISR_Handler(USB_OTG_handle*)'
collect2: error: ld returned 1 exit status
make: *** [LogicDiscovery.elf] Error 1
Original comment by acaballo...@gmail.com
on 25 Oct 2014 at 7:07
Original issue reported on code.google.com by
nikll....@gmail.com
on 29 Jan 2014 at 10:48