Of course, I also added "-DMGL_STATIC_DEFINE" macro definition
I would like to ask how to use the static link library of Mathgl in my program. Now, I use "-Lmathgl-2.4.4.LGPL-mingw.win64/lib -lmgl" in my project, compile and links can be completed to generate execute file, but when i run execute file, it tell me find not "libmgl.dll", why? I clearly tell the linker to use the static library in path "mathgl-2.4.4.LGPL-mingw.win64/lib/libmgl.a", but in the end, the dynamic link library is used. How I to link static library?
Trouble with SDCC complie