News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

How to say to an executable with mingw where it has to find the dlls?

Started by newage, September 11, 2008, 08:11:22 PM

Previous topic - Next topic

newage

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.

jfouche

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

MortenMacFly

Quote from: newage on September 11, 2008, 08:11:22 PM
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".
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]