|
From: Luke D. <cod...@ho...> - 2003-10-09 01:51:53
|
----- Original Message ----- From: "Schuster, Joel (N-Compaq)" <joe...@lm...> To: <min...@li...> Sent: Thursday, October 09, 2003 4:36 AM Subject: [Mingw-users] linking libraries > I'm doing all this under MSYS with MinGW. > >>> g++ -lopengl32 -o test test.cpp > > And I get this: > > test.cpp: undefined reference to `glEnable@4' > > This doesn't make any sence to me since the MinGW FAQ says that it should work correctly in the first way. No it doesn't. Libraries must always appear after objects in the link command, and don't use "-L/mingw/lib" because it is implied: g++ -o test test.cpp -lopengl32 > > 1. Where did the libopengl32.a file come from that is in the /mingw/lib directory if not from pexports/dlltool > From the opengl32.def file in the w32api source code, available in w32api-2.4-src.tar.gz. Luke |