It sounds like you're encountering dependency issues with your executable. To ensure all necessary files are included, you may need to either statically link the dependencies or ensure they're available in the executable's directory at runtime.


For statically linking, you'll want to check your compiler's documentation for options like -static to include libraries directly in your executable.


Alternatively, you can manually package the required files alongside your executable. This might involve creating a separate folder with the executable and its dependencies, then distributing it as a package.


Another option is to modify your build process to copy the necessary files automatically. You could write a script or use build tools like CMake to handle this task for you.


Experimenting with these approaches should help you create a more portable executable.