Author Topic: How to say to an executable with mingw where it has to find the dlls?  (Read 2988 times)

newage

  • Guest
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.

Offline jfouche

  • Multiple posting newcomer
  • *
  • Posts: 28
Re: How to say to an executable with mingw where it has to find the dlls?
« Reply #1 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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: How to say to an executable with mingw where it has to find the dlls?
« Reply #2 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".
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ