December 08, 2004 Newbie question | ||||
---|---|---|---|---|
| ||||
Posted in reply to Helmut Leitner | Hi all, That my first try using D. I've downloaded dmd.zip for Linux from the DigitalMars site, but I couldn't execute it on linux. Looking at the files, I've found .exe's and .bat's. It looks like Windows stuff. How I need to use D on Linux? What am I missing. Any hints would be appreciated. TIA Nilo |
December 08, 2004 Re: Newbie question | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nilo Paim | -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Nilo Paim schrieb am Wed, 08 Dec 2004 15:48:51 -0200: > Hi all, > > That my first try using D. I've downloaded dmd.zip for Linux from the DigitalMars site, but I couldn't execute it on linux. > > Looking at the files, I've found .exe's and .bat's. It looks like Windows stuff. > > How I need to use D on Linux? What am I missing. 1) the manual aproach chmod +x dmd/bin/dmd addapt the content of dmd.conf to your directory name cp dmd/bin/dmd.conf /etc 2) the script http://dmd.kuehne.cn ( it does a little bit more ) Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.9.13 (GNU/Linux) iD8DBQFBtz/83w+/yD4P9tIRArNsAJsEtcXqZrVB8KUKYIFR1UFU90Y1FgCgkN2o 8GmVyuQ2/emUo1McUggCNus= =bgfb -----END PGP SIGNATURE----- |
December 08, 2004 Re: Newbie question | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nilo Paim | In article <cp7eg6$2osa$1@digitaldaemon.com>, Nilo Paim says... > >Hi all, > >That my first try using D. I've downloaded dmd.zip for Linux from the DigitalMars site, but I couldn't execute it on linux. > >Looking at the files, I've found .exe's and .bat's. It looks like Windows stuff. > >How I need to use D on Linux? What am I missing. > >Any hints would be appreciated. > >TIA > >Nilo I think you need to install it per the instructions here: http://www.digitalmars.com/d/dcompiler.html#linux jcc7 |
December 08, 2004 Re: Newbie question | ||||
---|---|---|---|---|
| ||||
Posted in reply to J C Calvarese | J C Calvarese wrote: > In article <cp7eg6$2osa$1@digitaldaemon.com>, Nilo Paim says... > >>Hi all, >> >>That my first try using D. I've downloaded dmd.zip for Linux from the DigitalMars site, but I couldn't execute it on linux. >> >>Looking at the files, I've found .exe's and .bat's. It looks like Windows stuff. >> >>How I need to use D on Linux? What am I missing. >> >>Any hints would be appreciated. >> >>TIA >> >>Nilo > > > I think you need to install it per the instructions here: > http://www.digitalmars.com/d/dcompiler.html#linux > > jcc7 Hi, Sorry. I should read all the documention before start. But it got the following messages. chello.o(.data+0x48): undefined reference to `_Class_3std1c7windows3com9ComObject' chello.o(.rodata+0x44): undefined reference to `_Interface_3std1c7windows3com8IUnknown' chello.o(.rodata+0x104): undefined reference to `_D3std1c7windows3com9ComObject6AddRefWZk@0' chello.o(.gnu.linkonce.t_D6chello6CHello5_dtorWZv+0x18): In function `_D6chello6CHello5_dtorWZv@0': : undefined reference to `MessageBoxA@16' chello.o(.gnu.linkonce.t_D6chello6CHello4InitWZi+0x18): In function `_D6chello6CHello4InitWZi@0': : undefined reference to `MessageBoxA@16' chello.o(.gnu.linkonce.t_D6chello6CHello14QueryInterfaceWPS3std1c7windows3com4GUIDPPvZi+0x1b): In function `_D6chello6CHello14QueryInterfaceWPS3std1c7windows3com4GUIDPPvZi@8': : undefined reference to `MessageBoxA@16' chello.o(.gnu.linkonce.t_D6chello6CHello14QueryInterfaceWPS3std1c7windows3com4GUIDPPvZi+0x20): In function `_D6chello6CHello14QueryInterfaceWPS3std1c7windows3com4GUIDPPvZi@8': : undefined reference to `IID_IUnknown' chello.o(.gnu.linkonce.t_D6chello6CHello7ReleaseWZk+0x1a): In function `_D6chello6CHello7ReleaseWZk@0': : undefined reference to `MessageBoxA@16' chello.o(.gnu.linkonce.t_D6chello6CHello7ReleaseWZk+0x3f): In function `_D6chello6CHello7ReleaseWZk@0': : undefined reference to `MessageBoxA@16' chello.o(.gnu.linkonce.t_D6chello6CHello5PrintWZi+0x18): In function `_D6chello6CHello5PrintWZi@0': : undefined reference to `MessageBoxA@16' chello.o(.gnu.linkonce.t_D6chello6CHello5PrintWZi+0x36): In function `_TMP7@0': : undefined reference to `_D3std1c7windows3com9ComObject6AddRefWZk@0' chello.o(.gnu.linkonce.t_D6chello6CHello5PrintWZi+0x66): In function `_TMP11@0': : undefined reference to `_D3std1c7windows3com9ComObject6AddRefWZk@0' /usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../libphobos.a(deh2.o)(.gnu.linkonce.t_D4deh213__eh_finddataFPvZPS4deh213DHandlerTable+0x4): In function `_D4deh213__eh_finddataFPvZPS4deh213DHandlerTable': : undefined reference to `_deh_beg' /usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../libphobos.a(deh2.o)(.gnu.linkonce.t_D4deh213__eh_finddataFPvZPS4deh213DHandlerTable+0xc): In function `_D4deh213__eh_finddataFPvZPS4deh213DHandlerTable': : undefined reference to `_deh_beg' /usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../libphobos.a(deh2.o)(.gnu.linkonce.t_D4deh213__eh_finddataFPvZPS4deh213DHandlerTable+0x13): In function `_D4deh213__eh_finddataFPvZPS4deh213DHandlerTable': : undefined reference to `_deh_end' /usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../libphobos.a(deh2.o)(.gnu.linkonce.t_D4deh213__eh_finddataFPvZPS4deh213DHandlerTable+0x37): In function `_D4deh213__eh_finddataFPvZPS4deh213DHandlerTable': : undefined reference to `_deh_end' /usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../libphobos.a(dmain2.o)(.gnu.linkonce.tmain+0x64): In function `main': : undefined reference to `_Dmain' collect2: ld returned 1 exit status --- errorlevel 1 I'm using Suse 9.2. Any hints? Nilo |
December 08, 2004 Re: Newbie question | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nilo Paim | Nilo Paim wrote:
<snip>
>
> I'm using Suse 9.2.
>
> Any hints?
>
> Nilo
Yep, chello.d is a d win32 sample program. You can't build it on Linux.
Try hello.d instead.
|
December 08, 2004 Re: Newbie question | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nilo Paim | -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Nilo Paim schrieb am Wed, 08 Dec 2004 16:31:14 -0200: > Sorry. I should read all the documention before start. > > But it got the following messages. > > > chello.o(.data+0x48): undefined reference to > `_Class_3std1c7windows3com9ComObject' > chello.o(.rodata+0x44): undefined reference to > `_Interface_3std1c7windows3com8IUnknown' <snip> > I'm using Suse 9.2. > > Any hints? This is a Windows only sample... The same goes for dclient, dserver and winsamp. <<Walter>> How about adding a version(Windows) check to the samples? Just a note: don't try the *.html samples - they haven't been updated for quite some time. Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.9.13 (GNU/Linux) iD8DBQFBt0sD3w+/yD4P9tIRAlDdAJ0Rw5raMaitQMeZ63+Zf+6MJPcr0gCfXqkj dqCzZd2koYVK/nWkIWP1CVI= =lQlo -----END PGP SIGNATURE----- |
December 08, 2004 Re: Newbie question | ||||
---|---|---|---|---|
| ||||
Posted in reply to Thomas Kuehne |
Thomas Kuehne wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Nilo Paim schrieb am Wed, 08 Dec 2004 16:31:14 -0200:
>
>>Sorry. I should read all the documention before start.
>>
>>But it got the following messages.
>>
>>
>>chello.o(.data+0x48): undefined reference to `_Class_3std1c7windows3com9ComObject'
>>chello.o(.rodata+0x44): undefined reference to `_Interface_3std1c7windows3com8IUnknown'
>
> <snip>
>
>>I'm using Suse 9.2.
>>
>>Any hints?
>
>
> This is a Windows only sample...
>
> The same goes for dclient, dserver and winsamp.
>
> <<Walter>> How about adding a version(Windows) check to the samples?
>
> Just a note: don't try the *.html samples - they haven't been updated
> for quite some time.
>
> Thomas
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.9.13 (GNU/Linux)
>
> iD8DBQFBt0sD3w+/yD4P9tIRAlDdAJ0Rw5raMaitQMeZ63+Zf+6MJPcr0gCfXqkj
> dqCzZd2koYVK/nWkIWP1CVI=
> =lQlo
> -----END PGP SIGNATURE-----
Thanks a lot. It works. Sorry for the inconvenience.
Best regards.
Nilo
|
December 08, 2004 [patch] disable Windows samples on non-Windows platforms | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nilo Paim | -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 NotDashEscaped: You need GnuPG to verify this message see Subject Thomas diff -ur org/dmd/samples/d/chello.d neu/dmd/samples/d/chello.d --- org/dmd/samples/d/chello.d 2004-11-23 17:25:54.000000000 +0100 +++ neu/dmd/samples/d/chello.d 2004-12-08 19:48:02.000000000 +0100 @@ -13,6 +13,11 @@ */ // From an example from "Inside OLE" Copyright Microsoft +version(Windows){}else{ + pragma(msg, "This sample is only supported on Windows"); + static assert(0); +} + import std.c.stdio; import std.c.stdlib; import std.string; diff -ur org/dmd/samples/d/dclient.d neu/dmd/samples/d/dclient.d --- org/dmd/samples/d/dclient.d 2004-06-08 10:00:50.000000000 +0200 +++ neu/dmd/samples/d/dclient.d 2004-12-08 19:48:41.000000000 +0100 @@ -12,6 +12,10 @@ * Compuserve: >INTERNET:kraigb@microsoft.com */ +version(Windows){}else{ + pragma(msg, "This sample is only supported on Windows"); + static assert(0); +} import std.c.stdio; import std.c.stdlib; diff -ur org/dmd/samples/d/dserver.d neu/dmd/samples/d/dserver.d --- org/dmd/samples/d/dserver.d 2004-11-23 17:25:28.000000000 +0100 +++ neu/dmd/samples/d/dserver.d 2004-12-08 19:48:55.000000000 +0100 @@ -13,6 +13,10 @@ * Compuserve: >INTERNET:kraigb@microsoft.com */ +version(Windows){}else{ + pragma(msg, "This sample is only supported on Windows"); + static assert(0); +} import std.c.stdio; import std.c.stdlib; import std.string; diff -ur org/dmd/samples/d/winsamp.d neu/dmd/samples/d/winsamp.d --- org/dmd/samples/d/winsamp.d 2004-12-05 14:34:20.000000000 +0100 +++ neu/dmd/samples/d/winsamp.d 2004-12-08 19:49:43.000000000 +0100 @@ -2,6 +2,10 @@ /* Compile with: * dmd winsamp gdi32.lib winsamp.def */ +version(Windows){}else{ + pragma(msg, "This sample is only supported on Windows"); + static assert(0); +} import std.c.windows.windows; import std.c.stdio; -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.9.13 (GNU/Linux) iD8DBQFBt0/53w+/yD4P9tIRAjmzAJ9whIG4CiwQ8laNEaCdl81AsIjyXgCfbSdg 09hMjkG8filHuD1sCnHCkg4= =jX1m -----END PGP SIGNATURE----- |
December 08, 2004 Re: DMD 0.109 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | YEAH! Only 891 more updates til 1.0 !!!! "Walter" <newshound@digitalmars.com> wrote in message news:coujoq$1jqg$1@digitaldaemon.com... > http://www.digitalmars.com/d/changelog.html > > |
Copyright © 1999-2021 by the D Language Foundation