QB64.org Forum
Active Forums => QB64 Discussion => Topic started by: Craz1000 on January 02, 2020, 09:16:22 pm
-
I get an error every time i run the program that says "Could not find dynamic library file". However zlib.dll and zlib1.dll is in the QB64 directory, system32, and syswow64.
I have tried it with the ".\" and full directory as well. Oddly it will work on one machine but not the other. And the one it is not working on is a fresh install of windows, however it was running on it before.
-
Is it a 32-bit version of QB64, or a 64-bit version? They use 2 different library files, so make certain that both are in the current directory so they can be found.
You might also try to change that line to :
DECLARE LIBRARY "./zlib1"
and:
DECLARE DYNAMIC LIBRARY "./zlib"
If all else fails, you can always hard code the path to the library, to make certain it'll be found.
DECLARE DYNAMIC LIBRARY "C:\Your Dir\Sub Dir\zlib"
-
both files are in all of the directories. I have also tried it with ./ and hard coded directory and I get the same error.
-
I don't know why, and it makes no sense, I installed the 2015 C++ distribution and now it runs fine.