Re: compiling flags (gtk2 --> gtk3)

Tristan Van Berkom <[email protected]>
Newsgroups gmane.comp.gnome.glade.user
Organization Openismus GmbH
Message-ID <1319333734.1662.0.camel@ragamuffin>
On Sat, 2011-10-22 at 17:47 -0700, David Buchan wrote:
> I recently formatted my drive and installed the latest Ubuntu
> distribution of glade
> and I installed libgtk-3-dev.
> 
> 
> In my make file, I used to have:
> 
> 
> CCFLAGS = `pkg-config --cflags gtk+-2.0 gmodule-2.0`
> LIBS    = `pkg-config --libs   gtk+-2.0 gmodule-2.0`
> 
> 
> I've changed it to:
> 
> 
> CCFLAGS = `pkg-config --cflags gtk+-3.0 gmodule-2.0`
> LIBS    = `pkg-config --libs   gtk+-3.0 gmodule-2.0`
> 
> 
> I left the gmodule as 2.0, as it couldn't find 3.0
> 
> 
> I made no changed to my source code.
> 
> 
> It compiles but won't link. I bombs with tons of errors such as:
> 
> 
> /x.c:43: undefined reference to `g_threads_got_initialized'
> /x.c:44: undefined reference to `g_thread_init'
> /x.c:46: undefined reference to `gtk_init'
> /x.c:49: undefined reference to `g_malloc0'
> etc etc...
> 
> 
> What am I doing wrong?

Adding -Wall would be a good start.

> 
> 
> Any tips would be appreciated.
> 
> 
> Dave
> 
> _______________________________________________
> Glade-users maillist  -  [email protected]
> http://lists.ximian.com/mailman/listinfo/glade-users


_______________________________________________
Glade-users maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/glade-users
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.