Re: ld.exe: cannot find -liconv



Thanks you for the prompt response.
I did as you suggested and glib-2.0.pc now looks like this:
-- 
prefix=/devel/target/glib-2.6.6
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

glib_genmarshal=glib-genmarshal
gobject_query=gobject-query
glib_mkenums=glib-mkenums

Name: GLib
Description: C Utility Library
Version: 2.6.6
Libs: -L${libdir} -lglib-2.0 -lintl
Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include
---------

I have also changed the parameters I pass to the GCC linker; it looks like
this:
-LC:/GnuWin32/lib -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0
-lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpango-1.0 -lgobject-2.0
-lgmodule-2.0 -lglib-2.0 -lintl -mwindows

I recompiled the program and had no problems doing so, but when trying to
run it I got a message box saying:
Pango-ERROR **: file shape.c: line 75(pango_shape): assertion
failed:(glyphs->num_glyphs > 0)
aborting...

What do I do to solve this problem?

Again, thank you for your prompt response!


> jalkadir gosonic ca writes:
>  > When trying to compile a GTK+ program, the linker complains about not
>  > being able to find the "iconv" library.
>
>  > What can I do to fix this problem?
>
> Just remove the -liconv from glib-2.0.pc. There isn't really any need
> to to link with -liconv just because you link with glib, but I don't
> always remember to edit it out when building a developer package of
> glib for Windows.
>
> --tml
>
>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]