I think one finds only the same warnings/error messages as have already been printed to the console - but it's certainly worth checking.
indicated, lies with the cpp code - which the op has supplied. If the contents of 'main.h' were also supplied we might be able to run the Inline::CPP code and see for ourselves. I think
first needs to get the code working as an Inline::CPP script before trying to put it into a module. As I said, we would be better placed to help with that if we could see the contents of 'main.h'.