You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to build a static gd library on Windows 10 64bit. The cmake build was successfully finished. When I link libgd.a and libjpeg.a to my project I get undefined references to all used functions from example code (i.e. __imp_gdImageCreate). Example: https://libgd.github.io/manuals/2.3.3/files/preamble-txt.html (I removed png functions).
If I build on unix 64bit as static lib it works.
If I build a dll it works too.
Cmake command, equal in both machines: cmake -G "MinGW Makefiles" .. -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIB=OFF -DENABLE_JPEG=1 -DJPEG_LIBRARY=C:\\MinGW64\\bin\\proj\\_EXT_LIBS\\libgd\\libgd-master\\module\\jpeg\\libs\\libjpeg.a -DJPEG_INCLUDE_DIR=C:\\MinGW64\\bin\\proj\\_EXT_LIBS\\libgd\\libgd-master\\module\\jpeg
My gcc is from Mingw64
I tried V2.3.3 and the actual git project from yesterday.
Extracting the libgd.a with nm.exe shows that all function should be avialable. But are undefined when used.
I also tried to build with MSYS (supporting perl) but the result is the same.
I tried to build a static gd library on Windows 10 64bit. The cmake build was successfully finished. When I link libgd.a and libjpeg.a to my project I get undefined references to all used functions from example code (i.e. __imp_gdImageCreate). Example: https://libgd.github.io/manuals/2.3.3/files/preamble-txt.html (I removed png functions).
If I build on unix 64bit as static lib it works.
If I build a dll it works too.
Cmake command, equal in both machines:
cmake -G "MinGW Makefiles" .. -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIB=OFF -DENABLE_JPEG=1 -DJPEG_LIBRARY=C:\\MinGW64\\bin\\proj\\_EXT_LIBS\\libgd\\libgd-master\\module\\jpeg\\libs\\libjpeg.a -DJPEG_INCLUDE_DIR=C:\\MinGW64\\bin\\proj\\_EXT_LIBS\\libgd\\libgd-master\\module\\jpeg
Linking in project:
gcc %pname%%val%.c -I%pname%\libgd\libgd -L%pname%\libgd -l:libgd.a -l:libjpeg.a -lm -o %pname%%exe%.exe
My gcc is from Mingw64
I tried V2.3.3 and the actual git project from yesterday.
Extracting the libgd.a with nm.exe shows that all function should be avialable. But are undefined when used.
I also tried to build with MSYS (supporting perl) but the result is the same.
Following the cmake result:
_result.txt
The text was updated successfully, but these errors were encountered: