I believe you'll need to recompile the C++ code on the specific platform for it to run there. Also I don't think it's called a script, that's more for ultra high level languages (I think) like IMaxMacro. I believe we call C++ text, code.
I can afford to recompile for win, linux, osx and freebsd, not a major problem.
But I just want to be sure people don't have a showstopper because of a missing library.
What do you think about it ?
Edit: I would like to imitate the python way of doing things -> you can deploy an application oriented for a platform and let the user not to install anything.. One example coming in my head is Blender, the 3d software.
I believe you'll need the recompiled library for that platform as well. However I think this is not a problem when you use dynamic linkage, the user can simply download the finished library for his platform and your recompiled code for his platform and run the application.
If you don't want to bother the user, you can always statically link the library. I believe the entire library is inserted in your executable. This I think uses more space or even memory, however I heard that library calls may be faster on some platforms.