Help needed with GTK+2.0
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Help needed with GTK+2.0




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Help needed with GTK+2.0  
bivek.agrawal@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-17-04 12:45 AM


Hi all,


I was trying to get started with GTK+2.0 by compiling the example
source provided in GTK tutorial. But I am getting the following
problems..... Please help

% gcc -Wall -g example.c -o example `pkg-config --cflags gtk+-2.0`
`pkg-config --libs gtk+-2.0` -lgtk-x11-2.0 -lgdk-x11-2.0 -lglib-2.0
-lgdk_pixbuf-2.0

% ./example
Illegal instruction


Thanks
Bek






[ Post a follow-up to this message ]



    Re: Help needed with GTK+2.0  
Nils O. Selåsdal


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-19-04 10:48 PM

Xref: number1.nntp.dca.giganews.com comp.unix.programmer:153125

On Tue, 14 Dec 2004 16:05:29 -0800, bivek.agrawal wrote:

>
> Hi all,
>
>
> I was trying to get started with GTK+2.0 by compiling the example
> source provided in GTK tutorial. But I am getting the following
> problems..... Please help
>
> % gcc -Wall -g example.c -o example `pkg-config --cflags gtk+-2.0`
> `pkg-config --libs gtk+-2.0` -lgtk-x11-2.0 -lgdk-x11-2.0 -lglib-2.0
> -lgdk_pixbuf-2.0
>
> % ./example
> Illegal instruction
This tells you the cpu hit an instruction it doesn't recognize.
Could be many things at fault. e.g.
gtk and friends are compiled for another cpu type, try run
"gtk-demo" to check if the gtk installation is ok.
Your program is compiled for a diffrent cpu type(e.g.
you are on a i586 and the gcc defaults to i686; try
force it to e.g. -march=i386

Or your program has a nasty buffer overflow that corrupts
the stack, and the instruction pointer gets wild..






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:00 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register