Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: newage on September 11, 2008, 08:11:22 pm

Title: How to say to an executable with mingw where it has to find the dlls?
Post by: newage on September 11, 2008, 08:11:22 pm
How to say to an executable with mingw where it has to find the dlls?  :?

Its important because I want to make a GTK application with this structure:

\GTK\bin
\GTK\share
\GTK\...
\application.exe

The problem is that the dlls are in \GTK\bin, And I want that the application
seeks them in that directory.  :)

Thank you.
Title: Re: How to say to an executable with mingw where it has to find the dlls?
Post by: jfouche on September 11, 2008, 08:39:23 pm
add the \gtk\bin to your path ?

I don't think it is the good solution, maybe you have to change your directory structure to put  your exe in bin, or to put everything that is in bin in the same directory than your exe.
HTH
--
Jérémie
Title: Re: How to say to an executable with mingw where it has to find the dlls?
Post by: MortenMacFly on September 12, 2008, 08:52:39 am
The problem is that the dlls are in \GTK\bin, And I want that the application
seeks them in that directory.  :)
Let the application just run in that path -> see project options -> tab "build targets" -> for the target in question setup the "execution working dir".