[Mono-dev] error when building libgdiplus

Kostas Cibulskas kostas868 at gmail.com
Fri Jul 26 07:13:17 UTC 2013


Hi,

When running "make", there is an error in libgdiplus/tests:
libtool: link: gcc -g -O2 -pthread -o .libs/testgdi testgdi.o
 ../src/.libs/libgdiplus.so -lpthread -lfontconfig -pthread
/usr/bin/ld: testgdi.o: undefined reference to symbol 'g_print'
/usr/bin/ld: note: 'g_print' is defined in DSO
/lib/x86_64-linux-gnu/libglib-2.0.so.0 so try adding it to the linker
command line

I see the missing library added in a Makefile, but for some reason it is
not linked.
Fix to this is to add -lglib-2.0 and -lX11 to LIBS variable inside Makefile.

I cloned libgdiplus from github yesterday, so the problem is new I guess.

No idea how could I fix it in a commit, so I though I should let you guys
know about this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20130726/eaf43960/attachment.html>


More information about the Mono-devel-list mailing list