Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: tejasnot2 on February 12, 2019, 05:46:31 pm
-
Hi,
I recently built an application using code::blocks and an API called SFML and linked it's .dll files to the .exe file dynamically(copy-pasting dll files to debug and release folders) the program compiles and runs perfectly but I want it to run as an application that is independent of code::blocks.
I have seen other forums and posts but they had different issues. Also i don't mind static or dynamic linking.
When I run the .exe file i get dll missing errors. I even tried downloading the .dll files separately from 3rd party websites but that did not work either (entry point errors).
Somebody please help me.
-
You must deploy your application with the same DLL used when developing (basically a copy of the release folder, as you put the DLL inside).
You can also put these DLL in the system path, but then you can easily end in DLL hell.
-
use the dependencywalker to search for the dlls you need and provide them with your exe http://www.dependencywalker.com/