0

When I execute my application in other computer I receive many error messages about Dll Missing but in my computer works. My question its about How Can I link correctly libraries to my project, Im using CodeBlocks.

Linker Settings Screenshot

Thanks for your replies, I have been browsing about 3h for solve it and I can´t. Thanks for your help.

Konrad Rudolph
  • 530,221
  • 131
  • 937
  • 1,214
  • 1
    ***I receive many error messages about Dll Missing*** That means you don't have the dll in one of the folders of your `PATH` environment variable or the same folder as your executable. This has nothing to do with linker settings in Code::Blocks. This should help: [https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order#standard-search-order-for-desktop-applications](https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order#standard-search-order-for-desktop-applications) – drescherjm Sep 03 '20 at 16:24
  • 1
    See what DLLs are missing and transfer to this other computer where you want to execute code . – user3389943 Sep 03 '20 at 16:24
  • I want that the dll's come in exe, Its a problem of compiler but I can't resolve it, anyone know anything? – Vivo Madrid Sep 03 '20 at 16:55
  • ***I want that the dll's come in exe*** I believe that would be a totally different question not related to this question. A simpler approach to the new problem is to use an installer like NSIS to properly install your executable and required dlls. An alternate is to not use dlls and use static libraries if possible. – drescherjm Sep 03 '20 at 17:02
  • There are other significantly more complicated ways using binary resources embedding the dlls inside the executable and delay loaded dlls. – drescherjm Sep 03 '20 at 17:08
  • Im using Curl libraries, my question its how can I add correctly this libraries to the project. – Vivo Madrid Sep 03 '20 at 17:32
  • You are correctly adding the libraries (except for that you are linking to multiple versions of the same dll). However since your are using dlls they will be required to exist on whatever system you want to run your application on. – drescherjm Sep 03 '20 at 17:37
  • 1
    You may be able to link to just the `libcurl.a` and remove the others to remove the dll dependency on curl – drescherjm Sep 03 '20 at 17:42

0 Answers0