Hi - I've got an issue that I don't understand - hoping to get some insight into what I am doing wrong. I have a chai script with two functions - both exactly the same, I can call the first one fine, but the second one silently fails. I run .eval on the script first, then have a function containing this line "chaiInstance.eval<std::function<void ()>>(functionName);" - it only seems to work on the one function call ie: chai_runFunction("scriptFunc"); - and does nothing calling "chai_runFunction("printFromScript");". this is the script: def scriptFunc()
testGlobalVar = 555;
testGlobalVar = 9999;
I do it in my project like this:
Add an external_project
Just add it as a dependency to the project
As @Ybalrid already said there's nothing to link against. You just include the header files and are good to go.