|
From: Georg F. <fu...@is...> - 2000-12-07 22:28:33
|
Hello Dragoon, Dragoon wrote: > > Hi to all on the list, > > i'm a semi-new C coder, trying to test out the Mingw32 compiler with a few > opengl sources i have, it works fine with the opengl32 lib (-lopengl32) etc. > even the win32 lib works, i can get a window working, great. but when i try > 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'm using the gcc-2.95.2-msvcrt version of mingw32, gcc date > 7/11/99. You give not enough input for answering this question? > also, from compiling some old app, i got 'undefined ref to WinMain@16", WTF? > finally this is probably obvious, but i can't find the answer so i'll ask > you guys. how do i direct the compiler output to a file (i'm using win95) > any advice apperciated, thanks This question is easy, you have compiled something with the "-mwindow" option and not defined a "WinMain(...)" funktion. Background: For programs with a grafik-window and no console-window the linker is defining the main()-function and this main-function is calling WinMain( .... ). The Microsoft-Compiler works in this way. > > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options at: > http://lists.sourceforge.net/mailman/listinfo/mingw-users -- 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/ |