cc++11dlllinker-errors

Code execution cannot proceed because libquickmail-0.dll was not found?


I was looking for a quick and easy way to automatically send a file to my gmail for debugging purposes on multiple remote machines. However I am apparently having linking issues which I can't seem to solve.

I downloaded the win64 zip file of libquick, IDE is CodeBlocks, compile target is x64 and running on 64-bit Windows 10.

There were 10 files that came in the zip folder, in lib/include/bin. They were

bin > libquickmail-0.dll, libquickmaillight-0.dll, quickmaillight.exe.

include > quickmail.h.

lib > libquickmail.a, libquickmail.dll.a, libquickmail.la, libquickmaillight.a, libquickmaillight.dll.a, libquickmaillight.la.

I linked to all of the .a/.dll.a/.la and .dll files and it still gives me this error: Code execution cannot proceed because libquickmail-0.dll was not found

I have no idea what the problem is and am very open to ideas. Thank you for your time.


Solution

  • Either copy the libquickmail-0.dll to the same directory as your linked executable or add the libquickmail bin directory to your path. This will allow Windows to find the DLL to run the executable.