Thanks for the reply.

I'll put the order of the libs at the end of this message.

Here is a test program I tried, and it compiled successfully:

//-------------

#include <windows.h>
#include <cstdio>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glext.h>

main (int argc, char **argv)
{
        GLsizei a  = 0;
        GLuint *b = 0 ;
        GLfloat *f = 0 ;
        glDeleteTextures(a,b);
        glLoadMatrixf(f);

printf("V%d\n" , __GNUC__ );
}

//-------------

I use this command to compile it. Those gl functions also gave undefined references like glGetDoublev() did.

$ i686-mingw32-g++ tmp.c -lopengl32

Here is the order of the libs being used to compile Second Life:

apr-1 aprutil-1 fmodvc freetype jpeglib_6b curl expatMT OpenJPEG QTMLClient eay32 ssleay32 ogg_static_mt vorbis_static_mt vorbisenc_static_mt vorbisfile_static_mt xmlrpcepi zlib
boost_regex-vc71-mt-s dinput8 dsound dxerr8 dxguid glut32 glu32 opengl32
mswsock netapi32 odbc32 odbccp32 ole32 oleaut32 comdlg32 winmm winspool ws2_32 vfw32
...and standard libs follow

GCC_VERSION                   3.4.5-20060117-1
BINUTILS_VERSION              2.17.50-20060716-1
RUNTIME_VERSION               3.10-20060909-1
W32API_VERSION                3.8

Should those links be stdcall format, like _glGetDoublev@8

Gianluca Sforna wrote:
On 3/11/07, Dzonatas <dzonatas@dzonux.net> wrote:

  
The majority of the errors I get right now are from GL symbols. Like:
    undefined reference to `_glGetDoublev'
    

MSDN, for the glGetDoublev'() function says:

Requirements

  Windows NT/2000: Requires Windows NT 3.5 or later.
  Windows 95/98: Requires Windows 95 or later. Available as a
redistributable for Windows 95.
  Header: Declared in Gl.h.
  Library: Use Opengl32.lib.


Can you verify if (and where) on the linker command search for the
Opengl32.lib file?

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users


  

--