On Wednesday, 22 October 2014 at 01:45:07 UTC, Mike Parker wrote:
On 10/22/2014 2:37 AM, Edn wrote:
Anyways, would
deimos/glfw/glfw3.d
be needed if I have
import glfw.glfw3;
in my main.d ?
You should be importing deimos.glfw.glfw3, I believe. But the
answer is yes. Import statements tell the compiler which
symbols are available when compiling a specific module. It does
not tell the compiler that you also want to compile the
imported module.
If you have compiled the deimos module into a library, then you
do not need to pass glfw3.d. You would instead link with the
library. However, you *always* need to import the modules you
want to use.
BTW, posts like this probably belong in the
digitalmars.D.learn[1].
[1] http://forum.dlang.org/group/digitalmars.D.learn
---
This email is free from viruses and malware because avast!
Antivirus protection is active.
http://www.avast.com
Hello again,
I get this error :
dmd -m64 main.d lib/glfw/glfw3.d glfw.lib
LINK : fatal error LNK1104: cannot open file 'glfw.lib'
--- errorlevel 1104