I have run into a linker issue while compiling my software on the web IDE. Essentially the problem is this:
I have my library.cpp and library.h along with 20-30 other files (with directory structure flattened). library.cpp uses functions from another file library-helper.h, therefore library.h has an #include “library-helper.h”. Now, when I compile this locally with the “firmware”, using “make PLATFORM=Photon” everything works fine, I get a .bin and it runs ok. However, when I do this on the webIDE. I get:
…/…/…/build/target/user/platform-6/libuser.a(library.o): In function
XXXXXXX(unsigned char*)': XXX/XXXX.cpp:342: undefined reference toXXXX-function’
Any help appreciated!