Gtk+ 2.x and Gtk+ 3 conflict?

I have done some c programming on Windoze in the past, but want to get into this on Linux.
I have installed Code::Blocks IDE. GCC is installed (5.3.1 64 bit)
I have a very basic Gtk+ app, which simply puts a couple of bttons in a window. It compiles fine, but running gives the following:

Any ideas?

What is the app exactly? You see message like this is you create a GTK3 applet for MATE Panel that is built against GTK2.

You can’t mix toolkits.

1 Like

It’s just a bog standard small GUI application that creates a window and puts two buttons in the window.

This compiled no problem from the command line with:

gcc pkg-config --cflags gtk+-3.0 -o first first.c pkg-config --libs gtk+-3.0

So it must be something with Code:Blocks

The compiler option in Code:Blocks is set to pkg-config --cflags gtk+-3.0 and the linker to pkg-config --libs gtk+-3.0

I’ll hold onto this for a while @Wimpy, while I look at what’s going on inside Code:Blocks

Is there a way to see if I have both toolkits installed?

Now resolved.
I did indeed have both toolkits installed.
Everything is working fine.

1 Like