www.digitalmars.com         C & C++   DMDScript  

D - Getting started with D

reply Berin Loritsch <bloritsch d-haven.org> writes:
I have the DMD compiler and the DM linker, but I can't seem to run
any of the programs that actually use other libraries.  For instance,
the "test.d" program that is supposed to pop up a window won't compile
due to some unresolved dependencies.

I am having issues doing anything more than the "toy" programs provided
in the samples.  Anything more robust that might include a UI or something
seems to be out of my reach for the time being.

I miss the simplicity of the Java environment where all you have to do
is include JARs in the class path.  Is there some equivelant feature that
I am missing with DMD?
Nov 21 2003
parent Andy Friesen <andy ikagames.com> writes:
Berin Loritsch wrote:
 I have the DMD compiler and the DM linker, but I can't seem to run
 any of the programs that actually use other libraries.  For instance,
 the "test.d" program that is supposed to pop up a window won't compile
 due to some unresolved dependencies.
 
 I am having issues doing anything more than the "toy" programs provided
 in the samples.  Anything more robust that might include a UI or something
 seems to be out of my reach for the time being.
 
 I miss the simplicity of the Java environment where all you have to do
 is include JARs in the class path.  Is there some equivelant feature that
 I am missing with DMD?
When time to link comes 'round, you have to specify the .LIB files to link in. If you're compiling everything with one invocation of DMD, it's real easy: dmd -ofstuff.exe source1.d source2.d source3.d somelib.lib someotherlib.lib ... The .LIBs should be someplace where the DM linker can find them. (like \dm\lib, or your source directory) -- andy
Nov 21 2003