Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
Developer forums (C::B DEVELOPMENT STRICTLY!)
»
Development
»
Help needed to create an apptication that runs without codeblocks
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Help needed to create an apptication that runs without codeblocks (Read 4139 times)
tejasnot2
Guest
Help needed to create an apptication that runs without codeblocks
«
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.
Logged
Miguel Gimenez
Developer
Lives here!
Posts: 1557
Re: Help needed to create an apptication that runs without codeblocks
«
Reply #1 on:
February 12, 2019, 06:26:47 pm »
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.
Logged
BlueHazzard
Developer
Lives here!
Posts: 3353
Re: Help needed to create an apptication that runs without codeblocks
«
Reply #2 on:
February 12, 2019, 06:42:40 pm »
use the dependencywalker to search for the dlls you need and provide them with your exe
http://www.dependencywalker.com/
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
Developer forums (C::B DEVELOPMENT STRICTLY!)
»
Development
»
Help needed to create an apptication that runs without codeblocks