Re: Can't link libs?

2014-06-08 Thread FreeSlave via Digitalmars-d-learn
On Friday, 6 June 2014 at 16:33:27 UTC, Adam D. Ruppe wrote: When you compile the final program, the library .d file needs to be available too, either in the folder based on its name or passed straight to dmd explicitly. Despite the presence of the .lib file, the .d file is still needed so

Re: Can't link libs?

2014-06-07 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 6 June 2014 at 17:02:33 UTC, K.K. wrote: Oh okay, I get what you mean. I guess I was really over complicating it then? xD Yea, I think a lot of people do: building C++ takes some extra steps out of necessity that you can just ignore in D for the most part :) Thanks for the help

Re: Can't link libs?

2014-06-06 Thread Adam D. Ruppe via Digitalmars-d-learn
When you compile the final program, the library .d file needs to be available too, either in the folder based on its name or passed straight to dmd explicitly. Despite the presence of the .lib file, the .d file is still needed so it can get code prototypes and type names, etc., out of it.

Can't link libs?

2014-06-06 Thread K.K. via Digitalmars-d-learn
So being a noob and all I've gotten stuck on something stupid... Whenever I try to compile using DMD, and try to link .lib files I always get errors like: file4.d(2): Error: module file3 is in file 'file3lib\file3.d' which cannot be read import path[0] = %cd%\file3 import path[1] =

Re: Can't link libs?

2014-06-06 Thread K.K. via Digitalmars-d-learn
On Friday, 6 June 2014 at 16:33:27 UTC, Adam D. Ruppe wrote: When you compile the final program, the library .d file needs to be available too, either in the folder based on its name or passed straight to dmd explicitly. Despite the presence of the .lib file, the .d file is still needed so

Re: Can't link libs?

2014-06-06 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 6 June 2014 at 16:41:24 UTC, K.K. wrote: I have kept all the files in one folder. So if I don't need to explicitly call the .lib in DMD, does that mean the .lib is just a passive object? Should I make libs in place of object files? If you pass all the .d files at once, you don't

Re: Can't link libs?

2014-06-06 Thread K.K. via Digitalmars-d-learn
On Friday, 6 June 2014 at 16:52:24 UTC, Adam D. Ruppe wrote: On Friday, 6 June 2014 at 16:41:24 UTC, K.K. wrote: I have kept all the files in one folder. So if I don't need to explicitly call the .lib in DMD, does that mean the .lib is just a passive object? Should I make libs in place of