www.digitalmars.com         C & C++   DMDScript  

c++.windows.32-bits - unistd.h & getcwd

reply "Robert M. Münch" <robert.muench robertmuench.de> writes:
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
Nov 12 2002
parent reply "Walter" <walter digitalmars.com> writes:
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
Nov 12 2002
parent reply "Robert M. Münch" <robert.muench robertmuench.de> writes:
"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
Nov 13 2002
next sibling parent "Walter" <walter digitalmars.com> writes:
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
Nov 13 2002
prev sibling parent reply "Matthew Wilson" <dmd synesis.com.au> writes:
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
Nov 13 2002
parent reply "Walter" <walter digitalmars.com> writes:
"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.
Nov 14 2002
next sibling parent "Nic Tiger" <nictiger progtech.ru> writes:
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.
Nov 14 2002
prev sibling parent reply "W³odzimierz Skiba" <abx abx.art.pl> writes:
"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
Feb 24 2003
parent "Walter" <walter digitalmars.com> writes:
"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.
Feb 24 2003