PDA

View Full Version : could someone help me with auxDIBImageLoad()?



vammpiro
02-09-2005, 02:51 PM
there something with this function, when I try to use it, it gives me a lot of linkers errors... I'm using devcpp+glut

[Linker error] undefined reference to `_imp__wglCreateContext@4'
[Linker error] undefined reference to `_imp__wglMakeCurrent@8'
[Linker error] undefined reference to `_imp__wglMakeCurrent@8'
[Linker error] undefined reference to `_imp__wglDeleteContext@4'

and ps: I'm linking to
-lopengl32 -lglut32 -lglu32 -lglaux

thanks

CWiC
02-10-2005, 01:29 AM
Try to specify opengl32 last, some compilers use order in which you pass libraries for symbol resolving search in such way that previously supplied libraries doesn't checked for symbols found in latter libraries.

vammpiro
02-10-2005, 06:18 PM
thanks man... it worked out...
I was wondering... that wouldn't be a linker error cause when I tryed a code with windows api worked out, and when I tryed using glut that erros occurred.. then I was really lost...
but thanks... now, I'm ok for a while =)