RE: GTK+ and MinGw..............
- From: "Suresh Kumar" <suresh_vsamy rediffmail com>
- To: martyn 2 russell bt com, gtk-app-devel-list gnome org
- Subject: RE: GTK+ and MinGw..............
- Date: 17 Sep 2003 03:49:02 -0000
Hi,
In my system pkg-config is reside in c:\gtk\bin. The PATH
variable contains this directory in its list.
PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32;
c:\gtk\bin;c:\Program Files\Common
Files\gtk\2.0\lib;c:\mingw\bin;c:\Program Files\Common
Files\GTK\2.0\bin
Still when i compile the program using
gcc -c hello.c `pkg-config gtk+-2.0 --cflags`
iam getting the same error "pkg-config: No such file or
directory".
But when i run pkg-config on its own in command prompt, i am
getting the result of what pkg-config should do. Problem comes
when we make pkg-config as an argument to gcc.
How to solve this?
Suresh.
On Tue, 16 Sep 2003 martyn 2 russell bt com wrote :
> Compilation
> -------------
> c:> gcc -c hello.c -Ic:/gtk/include/gtk-2.0
> -Ic:/gtk/lib/gtk-2.0/include -Ic:/gtk/include/atk-1.0
> -Ic:/gtk/include/pango-1.0 -Ic:/gtk/include/glib-2.0
> -Ic:/gtk/lib/glib-2.0/include
I would use:
gcc -c hello.c `pkg-config --cflags gtk+-2.0`
>
> Linking
> -------
> c:> gcc -o hello hello.o -Lc:/gtk/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
> -liconv
I would use:
gcc -o hello hello.o `pkg-config --libs gtk+-2.0`
>
> After linking, I got hello.exe. When executed hello.exe,
I
> got an error message stating that "The procedure entry point
> g_get_application_name could not be located in the dynamic
link
> library libglib-2.0-0.dll". I set "c:\gtk\lib" to PATH
variable
> which contains all library files.
This sounds to me like a DLL mismatch. I think Ive had this
before but only
when I have compiled the application against version 'a' and
downloaded
version 'b' and it complains when I try to run it (against the
new
libraries) without recompiling.
Regards,
Martyn
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
___________________________________________________
Catering meets Camera; Tanya Weds Sahil.
Rediff Matchmaker strikes another interesting match
Visit http://matchmaker.rediff.com?1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]