Thread overview
unistd.h & getcwd
Nov 12, 2002
Robert M. Münch
Nov 12, 2002
Walter
Nov 13, 2002
Robert M. Münch
Nov 13, 2002
Walter
Nov 13, 2002
Matthew Wilson
Nov 14, 2002
Walter
Nov 15, 2002
Nic Tiger
Feb 24, 2003
W³odzimierz Skiba
Feb 24, 2003
Walter
November 12, 2002
Hi, next problem. I have a win32 source code that uses the "getcwd" function. I only found this declaration in "unistd.h".

1. This include is not documented anywhere, right? Why?

2. I need to define M_UNIX or M_XENIX to get this file included. What is this? I found no documentation. I see that it's for unix stuff but DMC is a Win32 compiler.

3. When including "unistd.h" I get a lot of other errors I didn't got before. Is there a Win32 compliant definition for "getcwd"?

--
Robert M. Münch
IT & Management Freelancer
Mobile: +49 (0)177 2452 802
Fax   : +49 (0)721 8408 9112
Web   : http://www.robertmuench.de


November 12, 2002
There once was a unix version of DMC, but it fell by the wayside. getcwd() for win32 is in direct.h. -Walter

"Robert M. Münch" <robert.muench@robertmuench.de> wrote in message news:aqqg9b$2lk5$1@digitaldaemon.com...
> Hi, next problem. I have a win32 source code that uses the "getcwd" function. I only found this declaration in "unistd.h".
>
> 1. This include is not documented anywhere, right? Why?
>
> 2. I need to define M_UNIX or M_XENIX to get this file included. What is this? I found no documentation. I see that it's for unix stuff but DMC is
a
> Win32 compiler.
>
> 3. When including "unistd.h" I get a lot of other errors I didn't got before. Is there a Win32 compliant definition for "getcwd"?
>
> --
> Robert M. Münch
> IT & Management Freelancer
> Mobile: +49 (0)177 2452 802
> Fax   : +49 (0)721 8408 9112
> Web   : http://www.robertmuench.de
>
>


November 13, 2002
"Walter" <walter@digitalmars.com> schrieb im Newsbeitrag news:aqrikl$mri$1@digitaldaemon.com...

> There once was a unix version of DMC, but it fell by the wayside.

Hi, well maybe we can see a Linux version one day...

> getcwd() for win32 is in direct.h. -Walter

Thanks. How about retering the "unistd.h" file and removing it from the distribution? Robert


November 13, 2002
Yeah, it should go.

"Robert M. Münch" <robert.muench@robertmuench.de> wrote in message news:aqt0v0$3134$1@digitaldaemon.com...
> "Walter" <walter@digitalmars.com> schrieb im Newsbeitrag news:aqrikl$mri$1@digitaldaemon.com...
>
> > There once was a unix version of DMC, but it fell by the wayside.
>
> Hi, well maybe we can see a Linux version one day...
>
> > getcwd() for win32 is in direct.h. -Walter
>
> Thanks. How about retering the "unistd.h" file and removing it from the distribution? Robert
>
>


November 13, 2002
A Linux DMC++ would be great.

How much work is involved, Walter?

"Robert M. Münch" <robert.muench@robertmuench.de> wrote in message news:aqt0v0$3134$1@digitaldaemon.com...
> "Walter" <walter@digitalmars.com> schrieb im Newsbeitrag news:aqrikl$mri$1@digitaldaemon.com...
>
> > There once was a unix version of DMC, but it fell by the wayside.
>
> Hi, well maybe we can see a Linux version one day...
>
> > getcwd() for win32 is in direct.h. -Walter
>
> Thanks. How about retering the "unistd.h" file and removing it from the distribution? Robert
>
>


November 14, 2002
"Matthew Wilson" <dmd@synesis.com.au> wrote in message news:aques1$2do1$1@digitaldaemon.com...
> A Linux DMC++ would be great.
> How much work is involved, Walter?

One was built at one time, but there was insufficient interest in it.


November 15, 2002
Consider me interested in DMC++ for Linux.
I want my programs be cross-platform DOSX/Win32/Linux, but I don't want to
use another compiler for Linux.

Nic Tiger.

"Walter" <walter@digitalmars.com> wrote in message news:ar0r1l$1tv4$2@digitaldaemon.com...
>
> "Matthew Wilson" <dmd@synesis.com.au> wrote in message news:aques1$2do1$1@digitaldaemon.com...
> > A Linux DMC++ would be great.
> > How much work is involved, Walter?
>
> One was built at one time, but there was insufficient interest in it.
>
>


February 24, 2003
"Walter" <walter@digitalmars.com> wrote in news:ar0r1l$1tv4$2@digitaldaemon.com:
> "Matthew Wilson" <dmd@synesis.com.au> wrote in message news:aques1$2do1$1@digitaldaemon.com...
> > A Linux DMC++ would be great.
> > How much work is involved, Walter?
> 
> One was built at one time, but there was insufficient interest in it.

How you measured "sufficient" and "insufficient" ? Is that Linux version available on CD ? What is the speed of it. I consider DMC much better than Win32/DOS ports of GCC. If it can be also faster than GCC on its "native" Linux platform perhaps some advertisement could help ?

ABX
February 24, 2003
"W³odzimierz Skiba" <abx@abx.art.pl> wrote in message news:b3cmnu$23ma$1@digitaldaemon.com...
> "Walter" <walter@digitalmars.com> wrote in news:ar0r1l$1tv4$2@digitaldaemon.com:
> > "Matthew Wilson" <dmd@synesis.com.au> wrote in message news:aques1$2do1$1@digitaldaemon.com...
> > > A Linux DMC++ would be great.
> > > How much work is involved, Walter?
> > One was built at one time, but there was insufficient interest in it.
> How you measured "sufficient" and "insufficient" ? Is that Linux version available on CD ? What is the speed of it. I consider DMC much better than Win32/DOS ports of GCC. If it can be also faster than GCC on its "native" Linux platform perhaps some advertisement could help ?

It's not available because it wasn't completed. It did generate faster code (about 10%) than the gcc of the time, though I'm told gcc has improved, but I'm skeptical.