Probs with Gtk and Sge

Hi all,

I do need to use sge and Gtk in my SDL’s program, but sge needs to be a
C++ program whereas gtk needs to be built like a C program. If I compile
like a C++, Gtk gives me an error and if I compile like a C program sge
kick me out !!!

So can someone help me ?

I don’t remember well the errors but if someone needs it I’ll get it!

Bye
Sylvain

" Sylvain.Hellegouarch + etud.sir.a1" wrote:

Hi all,

I do need to use sge and Gtk in my SDL’s program, but sge needs to be a
C++ program whereas gtk needs to be built like a C program. If I compile
like a C++, Gtk gives me an error and if I compile like a C program sge
kick me out !!!

So can someone help me ?

I don’t remember well the errors but if someone needs it I’ll get it!

Bye
Sylvain

Why not try something like

extern “C” {

/* GTK Header files here */

}
and compile with C++.The extern “C” tell that everything inside the curly braces is compiled by a C
compiler.