Using Fresh IDE I have been having trouble using shared c library GLFW.
Currently I have a blank file in freshlib/equates/_glfw.inc, and modified allequates.inc to have the line
In freshlib/imports/Linux I have glfw.inc
import_proto 'libglfw.so.3.4',\ glfwInit, <VOID>, 'glfwInit',\ glfwTerminate, <VOID>, 'glfwTerminate'
Then in my test program I have simply
include "%lib%/freshlib.inc" @BinaryType GUI, compact include "%lib%/freshlib.asm" uses glfw start: InitializeAll cinvoke glfwInit FinalizeAll stdcall TerminateAll, 0
This assembles fine but when running the executable I get
error while loading shared libraries: libglfw.so.3.4: cannot open shared object file: No such file or directory
The shared lib libglfw.so.3.4 in in the local directory(with the executable) as well as usr/local/lib so it should be found.
Any idea what I might be doing wrong?