I want to set up a module in the “lib” folder of my project and #include it in my main program, but I have not been able to get it to work. I have followed the instructions in the Platformio pages about setting up a library in the “lib” folder, and followed the instructions in how to set up an include module in a c++ tutorial here (http://www.learncpp.com/cpp-tutorial/19-header-files/), and I just can’t get it to work. Everything compiles, but the link fails, with an “Undefined reference” error. I’ve tried it in CodeBlocks and VSCode and the same problem happens in both. I use Linux Mint 18.1.
Does anyone have an example of a header and process file I can include in my program so I can understand how to set up the files correctly?
Sorry, I think I’m suffering from delusions of understanding C. Apologies for wasting everybody’s time.