D - Am I installed correctly?
- Ben Briggs (9/9) May 22 2002 Greetings,
- Pavel Minayev (11/18) May 22 2002 that's
- Ben Briggs (18/38) May 22 2002 Hmm,
- Pavel Minayev (4/15) May 22 2002 Phobos and snn.lib are linked automatically.
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
"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 varthat'sset 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.dYou 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
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...simpleGreetings, I don't seem to have DMD installed properly; I can compile and linkanyprograms that print values and whatnot, but I can't seem to link withthanlibraries (SDL, TinyPTC are what I've tried). I have a LIB envion varthat'sset to "\dmd\lib;\dm\lib". Is there something else I have to do otherthe command below to link correctly with libraries? dmd -I\dmd\src\phobos test.dYou 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
"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.libPhobos 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