www.digitalmars.com         C & C++   DMDScript  

D - Am I installed correctly?

reply "Ben Briggs" <ovejasben hotmail.com> writes:
Greetings,

I don't seem to have DMD installed properly; I can compile and link simple
programs that print values and whatnot, but I can't seem to link with any
libraries (SDL, TinyPTC are what I've tried). I have a LIB envion var that's
set to "\dmd\lib;\dm\lib". Is there something else I have to do other than
the command below to link correctly with libraries?

dmd -I\dmd\src\phobos test.d

Thanks,
Ben
May 22 2002
parent reply "Pavel Minayev" <evilone omen.ru> writes:
"Ben Briggs" <ovejasben hotmail.com> wrote in message
news:acfr2g$fg6$1 digitaldaemon.com...

 Greetings,

 I don't seem to have DMD installed properly; I can compile and link simple
 programs that print values and whatnot, but I can't seem to link with any
 libraries (SDL, TinyPTC are what I've tried). I have a LIB envion var
that's
 set to "\dmd\lib;\dm\lib". Is there something else I have to do other than
 the command below to link correctly with libraries?

 dmd -I\dmd\src\phobos test.d
You still need to specify the libraries you need to link to. I'm not sure how it is done in the new version, probably just list 'em together with the source files? Anyhow, I've performed some tests, and it turned out that my SDL translation doesn't work with this version. There are some quirks, most noticeably the usage of -> and (void) argument lists: these are not in D, but older versions understood them. I'll fix it and put the new version on the site ASAP.
May 22 2002
parent reply "Ben Briggs" <ovejasben hotmail.com> writes:
Hmm,

Didn't seem to work. Maybe the command I'm typing is wrong...

dmd -I\dmd\src\phobos test.d \dmd\lib\phobos.lib \dm\lib\snn.lib

When I run that I get the same error:

link test,,,\dmd\lib\phobos.lib+\dm\lib\snn.lib+user32+kernel32/noi;
OPTLINK (R) for Win32  Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

test.obj(test)
 Error 42: Symbol Undefined _DFile_read_FAaZAg
--- errorlevel 1

Does anyone have any insight into my problem?

Thanks,
Benny Briggs

"Pavel Minayev" <evilone omen.ru> wrote in message
news:acfsa9$gno$1 digitaldaemon.com...
 "Ben Briggs" <ovejasben hotmail.com> wrote in message
 news:acfr2g$fg6$1 digitaldaemon.com...

 Greetings,

 I don't seem to have DMD installed properly; I can compile and link
simple
 programs that print values and whatnot, but I can't seem to link with
any
 libraries (SDL, TinyPTC are what I've tried). I have a LIB envion var
that's
 set to "\dmd\lib;\dm\lib". Is there something else I have to do other
than
 the command below to link correctly with libraries?

 dmd -I\dmd\src\phobos test.d
You still need to specify the libraries you need to link to. I'm not sure how it is done in the new version, probably just list 'em together with the source files? Anyhow, I've performed some tests, and it turned out that my SDL translation doesn't work with this version. There are some quirks, most noticeably the usage of -> and (void) argument lists: these are not in D, but older versions understood them. I'll fix it and put the new version on the site ASAP.
May 22 2002
parent "Pavel Minayev" <evilone omen.ru> writes:
"Ben Briggs" <ovejasben hotmail.com> wrote in message
news:achbdh$1sut$1 digitaldaemon.com...

 Hmm,

 Didn't seem to work. Maybe the command I'm typing is wrong...

 dmd -I\dmd\src\phobos test.d \dmd\lib\phobos.lib \dm\lib\snn.lib
Phobos and snn.lib are linked automatically.
 When I run that I get the same error:

 link test,,,\dmd\lib\phobos.lib+\dm\lib\snn.lib+user32+kernel32/noi;
 OPTLINK (R) for Win32  Release 7.50B1
 Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

 test.obj(test)
  Error 42: Symbol Undefined _DFile_read_FAaZAg
 --- errorlevel 1

 Does anyone have any insight into my problem?
I'll check it...
May 22 2002