GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sun Dec 21, 2014 10:17 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: undefined reference gtk_stack_new gtk3.6.4
PostPosted: Sun Jan 26, 2014 1:19 pm 
Offline

Joined: Sun Jan 26, 2014 11:56 am
Posts: 2
hi,

I'm developping a project with Code Blocks 13.12 and gtk 3.6.4 (offical release) under Windows 7.
When I add this code :
Code:
GtkWidget *s = gtk_stack_new();

It doesn't compile, I have the following error :
undefined reference to 'gtk_stack_new'
Build failed: 1 error...

Besides, code blocks doesn't recognize the code and doesn't provide auto completion as it is with any other gtk function.

I'm under the impression that it's like gtk_stack (same with gtk_stackswitcher) doesn't exist. For sure, in the doc it's been existing since gtk 3.1

Could you help me on this issue ?
If anyone could compile an empty project with this code and compile, that would be great to know if it works (under windows of course but under linux too) with your version of gtk .

have a good day,
Thanx


Top
 Profile  
 
 Post subject: Re: undefined reference gtk_stack_new gtk3.6.4
PostPosted: Sun Jan 26, 2014 1:45 pm 
Offline
Never Seen the Sunlight

Joined: Mon Apr 28, 2008 5:52 am
Posts: 799
Location: UK
Hello,

GtkStack in not available in GTK+ v3.6.4 as it was introduced in version v3.10 (three point ten).

You will need to upgrade to the newer version of GTK or use an alternative method to get what you need such as using a GtkNotebook without the headers.

_________________
E.


Top
 Profile  
 
 Post subject: Re: undefined reference gtk_stack_new gtk3.6.4
PostPosted: Sun Jan 26, 2014 2:07 pm 
Offline

Joined: Sun Jan 26, 2014 11:56 am
Posts: 2
Thanks a lot ! I got it !


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: jcfuller and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group