|
From: Georg F. <fu...@is...> - 2000-12-08 17:41:46
|
In my headerfile "glut.h" glutInitDisplayMode() is declared as extern void APIENTRY glutInitDisplayMode(unsigned int mode); That says the linker should look for glutInitDisplayMode@4 The @4 means that "APIENTRY" forces the fortran mode. At the moment I don't know where the two underscrore come from. __glutInitDisplayMode Peter Puck wrote: > > "Dragoon" <dr...@ic...> wrote: > > > to link the GLUT lib, it fails every time, giving me some crap about > > undefined references to '__glutInitDisplayMode' and a few others. what am i > > doing wrong? > > I think it is the header. Take a look at: > http://sites.netscape.net/ptrpck/glut.htm > > Peter > -- Georg Fusz Technische Universitaet Berlin, Germany Fon: Uni.: +49 30 314 26 884 privat: +49 30 815 30 32 Handy: +49 173 20 10 696 Homepage: http://www.cadlab.tu-berlin.de/~fusz/ |