User forums > Using Code::Blocks
setting a dll path
Acki:
Hi,
I wonder how to set a dll path in C::B ???
I mean like with wxWidgets, I installed it a view days ago and mentioned that I don't have to copy any wx dlls to the exe folder when running the exe in C::B, only if I try to run the exe directly in the folder I need to copy the needed dlls to this folder (or win\system)!
So I think there is an option to set dll pathes for the current project so it can find the dlls, but I couldn't find such ???
thx, Acki
Seronis:
This should really be posted in 'Help' or 'Using CodeBlocks' and not 'Help Wanted'
--- Quote ---Help wanted
Would you like to contribute to Code::Blocks? Here are some "bounties" which you may want to collaborate with: beta-testing,documentation,solving hard bugs or adding features.
--- End quote ---
MortenMacFly:
You can setup the path where to run the project's executable from within the projects options: tab "build targets" -> select your target -> select "Execution working directory". Choose the path of your required DLL there.
Acki:
but this will cause problems when I need to access files in the app dir, wouldn't it ???
also the wx project doesn't do it this way:
and just to be clear, it's the standard wx project you can select from the project wizard...
also let's say I need different dlls that are placed in different folders, how to do it then ???
it's prety strange nobody knows how to do this... :shock:
but someone must have done this project wizard for wxWidgets, maybe he's the only one who knows how to do this ??? :lol:
mandrav:
--- Quote from: Acki on March 21, 2008, 01:17:30 am ---I wonder how to set a dll path in C::B ???
--- End quote ---
All dirs entered in "linker search dirs" (in project build options), are added to PATH (only while executing your program within C::B) so they 're also searched for DLLs.
Navigation
[0] Message Index
[#] Next page
Go to full version