Hello CRV§ADER,
Wednesday, November 13, 2002, 7:04:37 PM, you wrote:
CK> I've got Dev-C++ 4.9.6.8 (4.9.6.0 with included gcc 2.95.3-6 + devcppexe
CK> 2.1042) and I'm trying to use the GTK+ DevPak.
CK> However, when I pass to compiler options:
CK> `pkg-config --cflags --libs gtk+-2.0`
CK> i get
CK> gcc.exe -c GTK-test.c -o GTK-test.o -I"C:/PRG/DEV-CPP/include" `pkg-config
CK> --cflags --libs gtk+-2.0` -pg -s
CK> GCC.EXE: cannot specify -o with -c or -S and multiple compilations
CK> while if I run gcc from the shell (from my project folder), i get
CK> >gcc gtk-test.c -o gtk-test.exe 'pkg-config --cflags --libs gtk+-2.0'
CK> GCC.EXE: 'pkg-config: No such file or directory
CK> GCC.EXE: gtk+-2.0': No such file or directory
CK> gtk-test.c:1: gtk.h: No such file or directory
CK> however, If I run pkg-config (from any dir) I obtain what's expected:
CK> And in fact, in PATH I have c:\prg\dev-cpp\bin.
CK> Where's the problem?
The problem is i think that ms dos(and windows thou) do not accept
unix (or bash or whaterver) construction:
command1 `command2`
which puts output of command2 as command line options for command1.
the solution can be just to paste output from pkg-config to
Project/ProjectOptions/General
and put in compiler options part concerning includes
and in linker options part concerning libs
then make a template from that (I don't know why there is no template
in GTK DevPack i consider it a bug especially pkg-config does not work
like it should and the second bug is GTK runtime wants to install
itself to dev-c++ directory and it should be dev-cpp now)
BTW: Is this the right place to send bugs ? if not where to send them
to get at least short reply like "ok we get it . we will remember
about it" ?
i changed output form pkg-config a bit not to use paths like
"c:\something\something\dev-cpp\" i used <INCLUDE> but i have no idea
how to solve this i a proper way:
compiler options:
-I<INCLUDE>/gtk-2.0 -I<INCLUDE>/../lib/gtk-2.0/include -I<INCLUDE>/atk-1.0 -I<INCLUDE>/pango-1.0 -I<INCLUDE>/glib-2.0 -I<INCLUDE>/../lib/glib-2.0/include
linker options:
-lgtk-win32-2.0 -lgdk-win32-2.0 -limm32 -lshell32 -lole32 -luuid -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangowin32-1.0 -lgdi32 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv -lwsock32
--
Best regards,
Piotr mailto:pi...@wi...
|