I doubt these linker errors are specific to OpenGL. You're also getting an undefined reference to AG_WidgetParentWindow() which is a standard GUI routine. It looks like your header files may be out of sync with the installed libraries.
On Sun, Jul 20, 2008 at 09:01:55AM +0000, ADI64 wrote: > Hey all, > > I compiled the agar library under windows with msys ( --enable-threads > --with-freetype --with-gl ). > Configure checked for OpenGL32, found it and said it's working and compiled > the > library. > In my project, I use parts of the glview.c example in a c++ project. > The code part is: > > -------------------------------- > AG_Window *gui; > AG_GLView *glv; > AG_HBox *hb; > > ..... > > gui = AG_WindowNew(AG_WINDOW_PLAIN); > hb = AG_HBoxNew(gui, AG_HBOX_EXPAND); > AG_LabelNewString(gui, 0, "Heyho, let's go"); > // Create the AG_GLView widget. > glv = AG_GLViewNew(hb, AG_GLVIEW_EXPAND); > -------------------------------- > > Everything compiles and links fine, but the AG_GLViewNew function seems to > make > problems. > The Error output is: > > -------------------------------- > ||=== SDLtest, Debug ===| > obj\Debug\engine.o||In function `_ZN7TEngine14T3D_OpenWindowEiib':| > D:\C++\Toast\sdltest\engine.cpp|116|undefined reference to `_AG_GLViewNew'| > D:\Programme\lib\Agar\lib\libag_gui.a(pane.o):pane.c:(.text+0x287)||undefined > reference to `_AG_WidgetParentWindow'| > ||=== Build finished: 2 errors, 0 warnings ===| > -------------------------------- > > I got no more Agar-Gl functions in this project at this time, because I can't > use them without the AG_GLView widget. > Additionally, I had more linker errors before (about 10, the 2 mentioned above > and some functions with ..Surface.. or ..Texture..), but those went away with > the SVN version I downloaded and compiled yesterday. > > Anyone got an idea what's up with Agar's GL functions under windows with msys? > > Regards, > > ADI64 > > _______________________________________________ > Agar mailing list > [email protected] > http://libagar.org/lists.html _______________________________________________ Agar mailing list [email protected] http://libagar.org/lists.html
