How to set up Derelict GLFW3 with VisualD ?

Whirlpool via Digitalmars-d-ide digitalmars-d-ide at puremagic.com
Sun Jan 31 10:22:53 PST 2016


Hi,

I would like to learn GLFW on Windows 10 with VisualD, but I 
don't know much about Visual Studio. I installed DMD 2.070.0 with 
Visual Studio Community 2013 and dub. Following the instructions 
here [http://derelictorg.github.io/compiling.html], I compiled 
DerelictGLFW3 and DerelictUtil. I put the resulting lib files 
into a libs\ folder in my project directory, and added that 
folder into the "Additional Import Paths" field in Solution 
properties > Configuration Properties > Compiler > General. I 
also added it into Configuration Properties > Linker > General > 
Library Search Path. But when trying to build the project, I get 
"Error	1	Error: module glfw3 is in file 'derelict\glfw3\glfw3.d' 
which cannot be read	C:\Users\username\documents\visual studio 
2013\Projects\ConsoleApp1\ConsoleApp1\main.d	1"

The code so far is only :

import derelict.glfw3.glfw3;

int main(string[] argv) {
	DerelictGLFW3.load();
	return 0;
}

I don't know how to proceed. Is there a tutorial for this 
somewhere ? Please could you help me ? Thank you


More information about the Digitalmars-d-ide mailing list