[Top][All Lists]

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

Re: [open-cobol-list] OC_GTK help

From: David Essex
Subject: Re: [open-cobol-list] OC_GTK help
Date: Sat, 04 Jul 2009 14:16:02 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040618

Michael wrote:

I've been trying to make use of OpenCobol with GTK. I've compiled ocgtk.c, and ocgtkhtml.cob.
i get the following errors:
ocgtk.o:ocgtk.c:(.text+0x147): undefined reference to `_G_CALLBACK'
ocgtk.o:ocgtk.c:(.text+0x154): undefined reference to `_G_OBJECT'
ocgtk.o:ocgtk.c:(.text+0x170): undefined reference to `_g_signal_connect'
ocgtk.o:ocgtk.c:(.text+0x194): undefined reference to `_gtk_type_check_object_cast'

What am I missing?

Platform cygwin on WinXP Pro.

I've successfully compiled and executed the follow GTK "C" program: so I know I have GTK installed correctly:

You are missing a library in your link step.
If available, use 'gtk-config --libs' or 'pkg-config --libs gtk+-2.0' script to get all the libraries.

Example on Linux:
#gtk-config --libs
-L/usr/lib -L/usr/X11R6/lib -lgtk \
-lgdk -rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm

Or better still, create a native WinXP application using the Win32 API.
Hint, a COBOL (sub)program is equivalent to a C function.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]