User forums > Using Code::Blocks

CodeBlocks 64bit, MSys2 and GTK

<< < (2/2)

stahta01:
So, is there a reason you did not try the linker command changes I suggested?

Edit: The GTK4 static libs do not exist that I can find.


--- Code: ---$ pkg-config --libs --static gtk4
-lgtk-4 -lpangocairo-1.0 -lm -lgdi32 -lpangoft2-1.0 -lm -lpangowin32-1.0 -lm -lgdi32 -ldwrite -lpango-1.0 -lm -lfribidi
-lthai -ldatrie -lharfbuzz-gobject -lgdk_pixbuf-2.0 -lm -lintl -lgdiplus -lole32 -ltiff -ljbig -lz -lwebp -lsharpyuv -lz
std -llzma -lLerc -ljpeg -ldeflate -lcairo-gobject -lm -lgdi32 -lmsimg32 -ldwrite -ld2d1 -lwindowscodecs -lcairo -lm -lg
di32 -lmsimg32 -ldwrite -ld2d1 -lwindowscodecs -lfontconfig -lintl -lm -lexpat -lfreetype -lbz2 -lpng16 -lharfbuzz -lm -
lusp10 -lgdi32 -lrpcrt4 -luser32 -lgraphite2 -lbrotlidec -lbrotlicommon -lpixman-1 -lm -pthread -lvulkan-1.dll -lgraphen
e-1.0 -lm -pthread -lgio-2.0 -lintl -lshlwapi -ldnsapi -liphlpapi -lws2_32 -lgobject-2.0 -lintl -LC:/msys64/mingw64/lib/
../lib -lffi -lgmodule-2.0 -lglib-2.0 -lintl -lws2_32 -lole32 -lwinmm -lshlwapi -luuid -latomic -lm -lpcre2-8 -lz

--- End code ---

Tim S.

stahta01:

--- Code: ---N:\msys64\mingw64\lib\libgtk-4.dll.a N:\msys64\mingw64\lib\libgraphene-1.0.dll.a
--- End code ---

Linking against DLLs and complaining it links against DLLs is not a smart thing to do.

Decide do you wish to link against these two DLLs or do you not wish to do that!

Oops, you might be right. Edit2: The shared gtk4 libs seems to be missing.


--- Code: ---$ ls /mingw64/lib/libgraphene-1.0.a
ls: cannot access '/mingw64/lib/libgraphene-1.0.a': No such file or directory
--- End code ---

Tim S.

stahta01:
You do realize that static linking means that GCC GPL license applies to the software you are writing; so, this is normally considered bad for any  software you plan to sell.

Tim S.

Navigation

[0] Message Index

[*] Previous page

Go to full version