Can FreeBASIC be used under FreeDOS?

DOS specific questions.
Post Reply
Briscoedjs
Posts: 18
Joined: Apr 16, 2022 4:38

Can FreeBASIC be used under FreeDOS?

Post by Briscoedjs »

I have an old laptop (32 bit CPU) that I've installed FreeDOS 1.3 on (along with Windows 7 Pro 32 bit). Is it possible to install FreeBASIC on a FreeDOS partition and use it to compile 32 bit console mode applications? If so, how would I do this? Has anyone else tried this? Thanks.
St_W
Posts: 1629
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

Re: Can FreeBASIC be used under FreeDOS?

Post by St_W »

You can install the DOS-Version of FreeBasic (see https://www.freebasic.net/wiki/CompilerRequirements for requirements, notably a DOS-Extender) and run FreeBasic there, compile+run your applications, etc.

However, you cannot run 32-bit Windows Console Applications in DOS, only 32-bit DOS Applications. So you need to compile your application in DOS (or specifically for DOS using cross-compilation).

Everything is documented in our Wiki: https://www.freebasic.net/wiki/DocToc
Briscoedjs
Posts: 18
Joined: Apr 16, 2022 4:38

Re: Can FreeBASIC be used under FreeDOS?

Post by Briscoedjs »

Thanks :D
Post Reply