[Geany] geany on windows

Enrico Tröger enrico.troeger at xxxxx
Sun Aug 2 13:40:09 UTC 2009


On Sun, 2 Aug 2009 06:03:52 +0000 (UTC), joshua.rh at comcast.net wrote:

Hi,

>"gcc" -Wall -o "hello" "hello.c" -mms-bitfields
>-IC:/gtk/include/gtk-2.0 -IC:/gtk/lib/gtk-2.0/include
>-IC:/gtk/include/atk-1.0 -IC:/gtk/include/cairo
>-IC:/gtk/include/pango-1.0 -IC:/gtk/include/glib-2.0
>-IC:/gtk/lib/glib-2.0/include -IC:/gtk/include/libpng12  -LC:/gtk/lib
>-lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgio-2.0 -lgdk_pixbuf-2.0
>-lpangowin32-1.0 -lgdi32 -lpangocairo-1.0 -lpango-1.0 -lcairo
>-lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl (in directory: C:\Users
>\user\Desktop) C:\Users\user\AppData\Local\Temp/ccsaGSpV.o:hello.c:
>(.text+0x50): undefined reference to `gtk_init_abi_check' C:\Users\user
>\AppData\Local\Temp/ccsaGSpV.o:hello.c:(.text+0x5c): undefined
>reference to `gtk_window_new' 

these errors are most probably caused because some libs are missing or
not found. But in any case independent from Geany.
Maybe you want to have a look at Geany's src/makefile.win32 in the
source tarball, there is a list of necessary libraries and linker flags,
for Geany.


>Does anyone know how I can get this to work in geany? I can command
>line compile with cmd.exe if I make an environment variable and do
>"gcc filename.c -o exename.exe %GTK_FLAGS%" but I can't use the
>variable (or it's content) to get apps to build in geany.  Any help is
>appreciated, Thanks,

This seems to be the same request you posted some wees ago
(http://lists.uvena.de/pipermail/geany/2009-July/004753.html) :).
I had a look and added some code to expand system environment
variables, see SVN r4050. If you don't build Geany yourself on Windows,
wait until Monday, 05:00 UTC and download the nightly binary from
http://nightly.geany.org to test it.

There seems to be a problem with expanded paths which contain spaces,
i.e. a quoting problem. I'm not yet sure where this happens and how to
fix it, but for paths without quotes it should work already.

HTH,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20090802/833080c7/attachment.pgp>


More information about the Users mailing list