-
April 8th, 2011, 05:42 PM
#1
Code::Blocks C++ static linking
In a nutshell: How can I statically link .dll files into my programs executable? I know it's possible, just have never done it before. I know there is also some issues that arise in doing so ( as well as bloating the executable's size ) but I'm still game for it.
Also, if that is just way to problematic, could someone at least tell me a way to link to the .dll files I need without having them directly in the same directory as the .exe file? The only reason I'm wanting to either statically link or organize these files is that there are several very small .dll files that I'm using, and I don't want the user to have to look at the directory where the .exe is and have to skim through ( a bit exaggerated ) 30 .dll files just to find the executable. It's also good to separate the files.
Any help would be great! I've been trying to use several other compilers and IDE's lately for exposure purposes ( I've also been doing Command line/Shell compiling/linking lately for those same reasons ).
-
April 9th, 2011, 05:26 AM
#2
Re: Code::Blocks C++ static linking
The way is Resource Binding.
Find VC++ forum old posts you will get it.
◄◄ hypheni ►►
-
April 9th, 2011, 05:28 AM
#3
Re: Code::Blocks C++ static linking
Regarding the linking part I think this sorts it all out http://www.network-theory.co.uk/docs...cintro_25.html
When you have the dlls in another dir than the exe see this http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx that explains windows search order for dlls.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|