merge DLL in EXE
-
- Posts: 89
- Joined: Tue Nov 06, 2007 4:49 pm
merge DLL in EXE
hi to all! does anyone know a way to merge a dll file into the main exe?
(possibly freeware)
many programs that do this thing are for .NET... i want something for C++
(possibly freeware)
many programs that do this thing are for .NET... i want something for C++
Dll's are dynamic link libraries. If you want the library in your executable you will have to link statically. It's usually a linker option, but I haven't tried to link Irrlicht statically so far, so not sure if that will currently work without problems.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Posts: 89
- Joined: Tue Nov 06, 2007 4:49 pm
something like this one: http://www.molebox.com/ (just a random google)
not sure if there are any free ones.
not sure if there are any free ones.
do you want to embed the dll into your .exe so you don't have to ship it, or do you want to just link to it? You can do both with Dev-C++
-wyrmmage
-wyrmmage
Worlds at War (Current Project) - http://www.awkward-games.com
Ganadu'r, The Eternal Sage (Other Current Project) - http://rpg.naget.com
Ganadu'r, The Eternal Sage (Other Current Project) - http://rpg.naget.com
4 .dlls isn't really too much... it may not look as clean as you'd like having those lying around but lots of applications use many more .dlls.
And it's not going to save you any physical space by sticking them in your .exe as they'll just add that much more size, it'll basically just hide them from sight which is only really necessary if you're incredibly anal
Personally i wanted to do this before as i thought it was ugly having all the .dlls lying around but then i figured it didn't really matter and gave up on the idea.
But as has been suggested you'll want to create a static lib of irrlicht to do this and also compile in DX statically to irrlicht, if possible
For audiere i'm not sure if it's open source so you might have to use one of the other suggestions for that.
And it's not going to save you any physical space by sticking them in your .exe as they'll just add that much more size, it'll basically just hide them from sight which is only really necessary if you're incredibly anal
Personally i wanted to do this before as i thought it was ugly having all the .dlls lying around but then i figured it didn't really matter and gave up on the idea.
But as has been suggested you'll want to create a static lib of irrlicht to do this and also compile in DX statically to irrlicht, if possible
For audiere i'm not sure if it's open source so you might have to use one of the other suggestions for that.
-
- Posts: 331
- Joined: Sat Sep 02, 2006 4:11 am
- Location: Michigan
- Contact:
I personally think that dll's seem more professional, makes it look like you didnt just use some point and click "make a game in 30 minutes" programs. It makes it feel that you worked on it researched the software libraries you needed, linked them together with your own programming to create your very own application.
embeding dlls is simple.
u just define them as resource and then load them. problem is then u have to load the function u want to use as well
u just define them as resource and then load them. problem is then u have to load the function u want to use as well
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
alternatively, you can use a gcc program to create a static library from the dll (no source code needed) and then just link to the static library; this allows you not to have to specify the load functions
-wyrmmage
-wyrmmage
Worlds at War (Current Project) - http://www.awkward-games.com
Ganadu'r, The Eternal Sage (Other Current Project) - http://rpg.naget.com
Ganadu'r, The Eternal Sage (Other Current Project) - http://rpg.naget.com
-
- Posts: 89
- Joined: Tue Nov 06, 2007 4:49 pm
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
From a cursory glance, it appears that dlltool only creates an import library for the dll, not a static version of the dll.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
It's tricky to get working, and you actually have to run at least two commands if I remember correctly; unfortunately I've lost my notes I took when I was doing this, so you'll have to look it up yourself I'm afraid
-wyrmmage
-wyrmmage
Worlds at War (Current Project) - http://www.awkward-games.com
Ganadu'r, The Eternal Sage (Other Current Project) - http://rpg.naget.com
Ganadu'r, The Eternal Sage (Other Current Project) - http://rpg.naget.com