# Probs with Gtk and Sge

**URL:** <https://discourse.libsdl.org/t/probs-with-gtk-and-sge/2060>\
**Category:** SDL Development\
**Created:** [March 21, 2000, 8:39am UTC](https://discourse.libsdl.org/t/probs-with-gtk-and-sge/2060 "2000-03-21T08:39:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sylvain\_Hellegouarch](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/ecae2f/32.png) [@Sylvain\_Hellegouarch](https://discourse.libsdl.org/u/Sylvain_Hellegouarch)\
**Post date:** [March 21, 2000, 8:39am UTC](https://discourse.libsdl.org/t/probs-with-gtk-and-sge/2060/1 "2000-03-21T08:39:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Vikram\_Subramanian](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/v/e9c0ed/32.png) [@Vikram\_Subramanian](https://discourse.libsdl.org/u/Vikram_Subramanian)\
**Post date:** [March 21, 2000, 12:05pm UTC](https://discourse.libsdl.org/t/probs-with-gtk-and-sge/2060/2 "2000-03-21T12:05:21Z")

</div>

" 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.
