- تاریخ ثبتنام
- Jun 6, 2020
- نوشتهها
- 11,215
- پسندها
- 3,630
Trying to use
external modules, which are written in plain C.
When linking in B4R, "undefined reference errors" occur because the c source files are being converted to cpp files.
Have flagged in Inline C that the functions are c code with extern "C" blocks = see below snippet.
Using the Arduino IDE 1.8.13 no issues compiling & linking, i.e. sketch is running ok.
Q: How to link external modules written in plain C.
Error Messages:
Inline C Snippet:
When linking in B4R, "undefined reference errors" occur because the c source files are being converted to cpp files.
Have flagged in Inline C that the functions are c code with extern "C" blocks = see below snippet.
Using the Arduino IDE 1.8.13 no issues compiling & linking, i.e. sketch is running ok.
Q: How to link external modules written in plain C.
Error Messages:
Inline C Snippet: