-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Closed
@DavesCodeMusings
Description
I have recently created my own library of base64 functions and installed it into Documents\Arduino\libraries\b64 (on Windows.) The two files are b64.h and b64.c, because I have written the library in C, not C++.
Current behavior:
When I include my library in a sketch, every function in my library generates an 'undefined reference'. However, by renaming my b64.c file to b64.cpp, all of the errors disappear and things work as expected.
Expected behavior:
The Hacking Libraries reference (https://www.arduino.cc/en/Hacking/Libraries) mentions in the very first sentence, "Libraries are files written in C or C++ (.c, .cpp)" The Arduino IDE should follow suit and link .c files as well as .cpp files.
Version info:
I am using Arduino IDE 1.8.13