Filenames in DOS

DOS specific questions.
Post Reply
NorbyDroid
Posts: 70
Joined: May 21, 2016 22:55

Filenames in DOS

Post by NorbyDroid »

There is an issue in the FreeBASIC DOS port involving DOS filenames.

For instance when trying to compile with -mt there is an error about missing libraries and the issue (as far as I can tell) is the filenames.

DOS uses an 8.3 (8 Characters with 3 char extension) scheme. The filenames in the \lib\DOS folder are renamed in this way. For instance libsocket.a is libsoc~1.a

Source code needs to be updated to reflect this.

Note: Yes, DOS can have long filename support added and use long names, but by default DOS uses the 8.3 scheme.
Plasma
Posts: 205
Joined: May 27, 2005 5:22
Location: Earth
Contact:

Re: Filenames in DOS

Post by Plasma »

Probably easier to just use DOSLFN. FB needs a pmode extender to run under DOS so it's already not "default DOS."
caseih
Posts: 2157
Joined: Feb 26, 2007 5:32

Re: Filenames in DOS

Post by caseih »

Doesn't FB and FB-generated EXEs require a DOS extender anyway? My understanding is FB produces 32-bit executables only.
Post Reply