Linker Error problem with Juce 1.36 and Dev-Cpp


#1

Hello all!
I’m using Juce for a few weeks now.
I developped a little app with Juce v1.33.
I’d like to add a few new features and decided to “upgrade” to 1.36.
Dev-Cpp tells me the following after trying to compile:

[Linker error] undefined reference to `wglCreateContext@4' [Linker error] undefined reference to `wglShareLists@8' [Linker error] undefined reference to `wglDeleteContext@4' [Linker error] undefined reference to `wglMakeCurrent@8' [Linker error] undefined reference to `wglMakeCurrent@8' ld returned 1 exit status C:\juce\projects\UCT v2\Makefile.win [Build Error] [conversion.exe] Error 1

BTW, it’s compiling fine under v1.35.
I’m using only Juce and a few shell32 things (shellexecute).
GUI is mostly done with Jucer.
Any ideas?


#2

Those are opengl calls - you can either link to the opengl library (sorry, can’t remember its name offhand) or turn off opengl support using the flag in juce_Config.h

I normally turn off the opengl flag by default when I release a new version, but must have left it enabled in this version.


#3

Recompiling without OpenGL support did the trick.
Thanks jules!


#4