Re: [GtkGLExt] problem with g++
- From: Florent Teichteil <florent_teichteil yahoo fr>
- To: Braden McDaniel <braden endoframe com>
- Cc: gtkglext-list gnome org
- Subject: Re: [GtkGLExt] problem with g++
- Date: Fri, 16 Sep 2005 17:49:40 +0200
I thought that decent C++ compilers *must* compile any C code, don't they ?
Braden McDaniel a écrit :
> On Fri, 2005-09-16 at 09:40 -0300, merlin o mago wrote:
>
>>I have a probem with g++. When I compile a program that uses gtkglext
>>I get the following error:
>>
>>user hostname:~/$ g++ `pkg-config --cflags --libs gtk+-2.0 gtkglext-1.0` gears.c
>>gears.c: In function `int main(int, char**)':
>>gears.c:470: error: invalid conversion from `int' to `GdkGLConfigMode'
>>gears.c:478: error: invalid conversion from `int' to `GdkGLConfigMode'
>>
>>This always happens that I use glconfig and this problem doesn't occur with gcc.
>>
>>The program gears is an example of gtkglext-1.0. How I could solve this problem?
>
>
> Er... Don't compile C code with a C++ compiler. The rules are different.
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]