Mail Archives: djgpp/1993/06/28/11:09:45
It seems to me that the best way to resolve the getcwd() problem is to create
a second library, something like libdos.a. This would contain a getcwd() that
behaves like the "standard" dos function instead of the standard unix function.
The library would contain any other functions that work differently in DOS
than they do in UNIX.
Now if you are porting a DOS program, link with libdos.a before the
other libraries. If you are porting a UNIX program, leave libdos.a
out.
Dave
- Raw text -