[system-tools] I'm having trouble using libwnck.

Rob Zeller <[email protected]>
Newsgroups gmane.comp.gnome.ximian.setup-tool
Message-ID <20050503143228.23434.qmail__37248.3901716352$1115130451$gmane$org@web52504.mail.yahoo.com>
I am getting a segmentation fault when calling the
linwnck API. I think i may not be linking my program
properly and have not been able to find enough
information on the WEB to figure it out myself.

Here is my program stripped down.

#include <glib.h>
#define WNCK_I_KNOW_THIS_IS_UNSTABLE 1
#include <libwnck/screen.h>
#include <libwnck/window.h>
#include <libwnck/workspace.h>

int main()
{
WnckScreen *Screen;
Screen = wnck_screen_get_default();
return(1);
}

This is how I am building my executable.
gcc workspace.c -o workspace.exe `pkg-config --cflags
--libs libwnck-1.0`

I am a newbie to Linux so please don't assume I know
anything. Thanks in advance.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.