Re: DLL's and D

2012-03-15 Thread Andrej Mitrovic
On 3/15/12, H. S. Teoh wrote: > It's correct, albeit a bit ugly. To alleviate the ugliness, you can tell > the compiler where the "root" directory for the library is supposed to > be. For example, if you invoked dmd with -ILibraries/Math, then you'll > be able to say: > > import math.matrix;

Re: DLL's and D

2012-03-15 Thread Chris Pons
Yes thank you. That cleared this up. On Thursday, 15 March 2012 at 22:08:18 UTC, H. S. Teoh wrote: On Thu, Mar 15, 2012 at 09:16:45PM +0100, Chris Pons wrote: Ok, I've actually run into another problem. I've decided to use a static library, since my project is small. I have added the path to t

Re: DLL's and D

2012-03-15 Thread H. S. Teoh
On Thu, Mar 15, 2012 at 09:16:45PM +0100, Chris Pons wrote: > Ok, I've actually run into another problem. I've decided to use a > static library, since my project is small. I have added the path to > the static library's .lib file in my project properties, just like > with derelict2. However, I'm n

Re: DLL's and D

2012-03-15 Thread Chris Pons
Ok, I've actually run into another problem. I've decided to use a static library, since my project is small. I have added the path to the static library's .lib file in my project properties, just like with derelict2. However, I'm not sure how to use import properly. The library in question is

Re: DLL's and D

2012-03-15 Thread Chris Pons
Yes, this is a lot more clear, thanks. On Thursday, 15 March 2012 at 05:06:16 UTC, Mike Parker wrote: On 3/15/2012 12:26 PM, Chris Pons wrote: I haven't used DLL's much, especially one I've built on my own, so guidance would be appreciated. I'm trying to figure out how to build a DLL which wa

Re: DLL's and D

2012-03-14 Thread Mike Parker
On 3/15/2012 12:26 PM, Chris Pons wrote: I haven't used DLL's much, especially one I've built on my own, so guidance would be appreciated. I'm trying to figure out how to build a DLL which was written in D but i'm not sure i'm doing this right. I'm using VS2010 and Visual D. Visual D has a temp

DLL's and D

2012-03-14 Thread Chris Pons
I haven't used DLL's much, especially one I've built on my own, so guidance would be appreciated. I'm trying to figure out how to build a DLL which was written in D but i'm not sure i'm doing this right. I'm using VS2010 and Visual D. Visual D has a template for Dll's in D, so I used that to