Quote:Original post by cignox1Quote:Original post by Nitage
Is that in a source file or a header file?
If I put them in a source file, then other sources may be unable to see them. In fact, if I put them in a cpp, the compiler tells me that when I try to use them they are undefined (I suppose that this is bound to the order of compilation?)
Then that's your problem. Every translation unit that includes the header will redefine the symbols, so the linker will fail.
You need to do this:
//In a header fileextern PFNGLBINDBUFFERARBPROC glBindBufferARB;extern PFNGLGENBUFFERSARBPROC glGenBuffersARB;extern PFNGLBUFFERDATAARBPROC glBufferDataARB;extern PFNGLDELETEBUFFERSARBPROC glDeleteBuffersARB;//in a source filePFNGLBINDBUFFERARBPROC glBindBufferARB = NULL;PFNGLGENBUFFERSARBPROC glGenBuffersARB = NULL;PFNGLBUFFERDATAARBPROC glBufferDataARB = NULL;PFNGLDELETEBUFFERSARBPROC glDeleteBuffersARB = NULL;