Linking .dll files to .exe file

  c++

I have just created my first graphical application with the GTK library and I have a little problem.
The application only opens a window of type GtkWidget and shows it to the user as a test.
When compiling this application with Linux g ++, the application opens correctly.
When compiling this application with MinGW g ++ for Windows, this shows that several .dlls are needed to run.
The only solution I have found is to save the .dll files in the same application folder, but I would like to save the .dll files in a separate folder for a better project structure.
I have built the application using the Visual Studio Code text editor.
The compilation has been done using MinGW (and I would like to keep it that way)

Source: Windows Questions C++

LEAVE A COMMENT