Interesting bug with imLib2/glut, or compiler error?
Andrew Pinski
pinskia@physics.uc.edu
Fri Apr 15 03:49:00 GMT 2005
On Apr 14, 2005, at 10:32 PM, Jay Summet wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
>
> I ran into an interesting bug when attempting to add imlib2 to a
> program that
> uses GLUT. The program would compile/link fine, but segfault when the
> imlib_load_image() call was made. (initial call to imlib)
>
> The fix?
>
> change:
> int time;
>
> to:
> //int time;
>
time is a standard C function so if you declare a variable, well you
just
overwrote it, this is not a GCC bug or even a imLib2/glut bug but
a bug in your program.
-- Pinski
More information about the Gcc-bugs
mailing list