Re: Compile fails, don't know why

2016-03-19 Thread Mathias Lang via Digitalmars-d
On Friday, 18 March 2016 at 10:38:00 UTC, Nafees wrote: On Friday, 18 March 2016 at 10:25:06 UTC, Mathias Lang wrote: On Friday, 18 March 2016 at 10:11:50 UTC, Nafees wrote: On Friday, 18 March 2016 at 10:07:18 UTC, Nafees wrote: I tried to create a separate module for storing classes in,

Re: Compile fails, don't know why

2016-03-19 Thread Mathias Lang via Digitalmars-d
On Friday, 18 March 2016 at 10:11:50 UTC, Nafees wrote: On Friday, 18 March 2016 at 10:07:18 UTC, Nafees wrote: I tried to create a separate module for storing classes in, this is the new module module qlib.classes; [...] Plus, the code works if the class is in the same module, and I did

Re: Compile fails, don't know why

2016-03-19 Thread Nafees via Digitalmars-d
On Friday, 18 March 2016 at 10:25:06 UTC, Mathias Lang wrote: On Friday, 18 March 2016 at 10:11:50 UTC, Nafees wrote: On Friday, 18 March 2016 at 10:07:18 UTC, Nafees wrote: I tried to create a separate module for storing classes in, this is the new module module qlib.classes; [...] Plus,

Re: Compile fails, don't know why

2016-03-19 Thread Mike Parker via Digitalmars-d
On Friday, 18 March 2016 at 10:38:00 UTC, Nafees wrote: Now I created a folder in the usr/include/dmd named qlib and placed the module there, yet it won't work. You have a fundamental misunderstanding here. Imported modules are not automatically compiled when you add them to the import path

Re: Compile fails, don't know why

2016-03-18 Thread Nafees via Digitalmars-d
On Friday, 18 March 2016 at 10:07:18 UTC, Nafees wrote: I tried to create a separate module for storing classes in, this is the new module module qlib.classes; [...] Plus, the code works if the class is in the same module, and I did add the path to the QLib.classes module in the compiler.

Compile fails, don't know why

2016-03-18 Thread Nafees via Digitalmars-d
I tried to create a separate module for storing classes in, this is the new module module qlib.classes; //QLib.Classes class tstrlist{ private: string[] list; uint taken; public: string read(uint index){ return list[index]; } void