Derelict GLFW3 glfw3.dll error
    Alexander via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Fri Nov 27 14:58:18 PST 2015
    
    
  
import std.stdio;
import derelict.opengl3.gl3;
import derelict.glfw3.glfw3;
pragma(lib, 
"C:\\Users\\Alexander\\AppData\\Roaming\\dub\\packages\\derelict-gl3-1.0.17\\lib\\DerelictGL3");
pragma(lib, 
"C:\\Users\\Alexander\\AppData\\Roaming\\dub\\packages\\derelict-glfw3-master\\lib\\DerelictGLFW3");
pragma(lib, 
"C:\\Users\\Alexander\\AppData\\Roaming\\dub\\packages\\derelict-util-2.0.4\\lib\\DerelictUtil");
pragma(lib,"lb");
int main()
{
	DerelictGL3.load();
	DerelictGLFW3.load();
     GLFWwindow* window;
     if (!glfwInit())
         return -1;
     window = glfwCreateWindow(640, 480, "Hello World", null, 
null);
     if (!window)
     {
         glfwTerminate();
         return -1;
     }
     /* Make the window's context current */
     glfwMakeContextCurrent(window);
	DerelictGL3.reload();
     while (!glfwWindowShouldClose(window))
     {
         glfwSwapBuffers(window);
         glfwPollEvents();
     }
     glfwTerminate();
     return 0;
}
ERROR: 
"derelict.util.exception.SharedLibLoadException at ..\..\AppData\Roaming\dub\packages\derelict-util-2.0.4\source\derelict\util\exception.d(35): Failed to load one or more shared libraries:
	glfw3.dll - The specified module could not be found."
Is there a way for me to link the glfw.dll so that derelictUtil 
can find the dll? Or am I going about this wrong?
    
    
More information about the Digitalmars-d-learn
mailing list