On Wednesday, 28 December 2016 at 02:12:32 UTC, pineapple wrote:
On Wednesday, 28 December 2016 at 02:08:44 UTC, Guy Asking a
Question wrote:
import test; <---dmd choking here.
You will need to use the -I option of dmd/rdmd to inform the
compiler of where your `HopefullySomeDLibrary` director
The code...
tester.d
module main;
import std.stdio;
import test; <---dmd choking here.
int main(string[] args)
{
writefln("Hello World\n");
writefln(add(a, b));
return 0;
}
test.d
module test;
int add(int a, int b)
{
return a + b;
}
I am just starting up with dmd and code::blocks. Generally I have
as my project structure something like this (sorry if your forum
doesn't format this nicely, use the '-'es for directory nesting):
ProjectA
-SubProject1
-SubProject2
ProjectB
-SubProject1
-SubProjectB
HopefullySomeDPr