Is it possible to define the root directory in a cross compiled program

Hans-Bernhard Bröker HBBroeker@t-online.de
Tue Jan 5 23:07:47 GMT 2021


Am 05.01.2021 um 22:04 schrieb Andrey Repin:
>> It's a Windows program - it can do whatever you program it to do!
>> On Windows the device is NUL, the root is the drive root C:\,
> 
> %SystemDrive%\ to be precise. 

Well, since we're being precise: no.

%SystemDrive%\ is the root of the drive the system is on.  That's not 
"the" root any more than c:\, \ or any other such thing.

The actual answer would be: no DOS-style path (i.e. neither c:\ nor \) 
can be usefully called "the" root on a Windows machine.

The closest to an actual root on a Windows system would be something 
like \\?\ or \\.\



More information about the Cygwin mailing list