Closed mrcodetastic closed 3 years ago
I left it as .c because on some embedded platforms that's the only compiler available and it would get misinterpreted by Arduino if you change the name extension. If you'll notice, it currently gets included into JPEGDEC.cpp so that it will be compiled as C++ code on Arduino. A quick fix for platformio is to rename it to jpeg.h and change the include line in JPEGDEC.cpp. This would make it more confusing for Linux/Embedded builds, so I'm not sure what the right plan is. Can you possibly exclude it from getting built in the project file?
Hi Larry,
Firstly, absolutely amazing library. Thank you for providing this to the public to use. However, I noticed that when using PlatformIO (not Arduino IDE) I cannot compile. This is due to some PlatformIO behaviour with mixed c and cpp files: https://community.platformio.org/t/resolved-fatal-error-memory-no-such-file-or-directory/914
Would it be possible to change the extension to .cpp? It is possible to compile then.