Ok, as usual, the multiple definitions error appears when I don't expect it...
Following the tutorials on the net, in order to use VBO with openGL I need to write the following functions definitions:
PFNGLBINDBUFFERARBPROC glBindBufferARB = NULL;
PFNGLGENBUFFERSARBPROC glGenBuffersARB = NULL;
PFNGLBUFFERDATAARBPROC glBufferDataARB = NULL;
PFNGLDELETEBUFFERSARBPROC glDeleteBuffersARB = NULL;
Gcc doesn't like them, and complaints that all the three functions were already been defined in locale_facets.tcc.
Quote:
.objs\util.o: In function `ZSt17__verify_groupingPKcjRKSs':
C:/Programmi/CodeBlocks/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/bits/locale_facets.tcc:2497: multiple definition of `glBindBufferARB'
.objs\main.o:C:/Programmi/CodeBlocks/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/bits/locale_facets.tcc:2497: first defined here
I gave a look to this file, but wasn't able to find that string. What's wrong?
Thank you.