I have managed to get it started, both inside and outside of Qt Creator.
I have manually compiled chaiscript_stdlib like this:
g++ "D:/DevTools/ChaiScript-5.7.1/src/chaiscript_stdlib.cpp" -o "D:/cstest/chaiscript_stdlib.dll" -shared -v -std=c++0x -Wp,-I"D:/DevTools/ChaiScript-5.7.1/include" -Wa,-mbig-obj
When compiling the 1st example in Qt Creator, copying the chaiscript_stdlib-5.7.1.dll file to the exe directory, and running it, it will show the message "Hello Bob". But then it will crash with a segmentation fault error on line 1915 of file hashtable.h.
When compiling the 1st example from command line like this:
g++ "D:/cstest/main.cpp" -o "D:/cstest/cstest.exe" -v -std=c++0x -Wp,-I"D:/DevTools/ChaiScript-5.7.1/include" -Wa,-mbig-obj -static
the exe will start, but it will fail to load chaiscript_stdlib-5.7.1.dll with the same "Unable to find module" error message that I posted in my first post.
So I am making progress, but still, not enough. I will now try to compile the second example (stdlib compiled in) and hope it will do something. However, I wanted to have that stdlib separated from my main exe...
The compiled in example works just fine when compiled from command line. So the only thing now is to find out what crashes the application when running with external stdlib... any idea?
The above only seems to work for mingw32 (32 bit). The mingw64 (64-bit) compilation hangs on collect2.exe. It might be a bad compiler installation, but I'm quite sure the issue is somewhere else.