Line 457 in LoadOGLCore.cpp:
gl_dyld = dlopen("OpenGL",RTLD_LAZY);
Does not seem to find the OpenGL framework library under Xcode5/OSX10.9 using GLFW3 and core profile. My application would crash on startup with:
AntTweakBar: OpenGL Core Profile functions cannot be loaded.
And otherwise work just fine when commenting out the Tw* calls. I was compiling with flags
-L/usr/local/lib -I/usr/local/include -lAntTweakBar -lGLFW3
With the OpenGL framework linked through build options in Xcode.
Eventually I found that changing the above to instead use the full path:
gl_dyld = dlopen("/System/Library/Frameworks/OpenGL.framework/OpenGL",RTLD_LAZY);
Solved the problem for me.