VOGONS


First post, by tron_thomas

User metadata
Rank Newbie
Rank
Newbie

I have DOSBox 0.74 running on two systems, a Intel system running the 32-bit version of Fedora Linux 16, the other system running Mac OS X 10.6.8.

I installed Borland's Turbo C++ 3.0 on both systems. On the Fedora system the Turbo C++ IDE will launch successfully.

When I try to run Turbo C++ on the Macintosh, I get this error:
Disk full! Not enough swap space.

What can be done so that Turbo C++ will run successfully in DOSBox on the Macintosh?

Reply 1 of 17, by IIGS_User

User metadata
Rank Oldbie
Rank
Oldbie

Mount c drive with option -freespace (default value = 250, which seems to be too less).

Klimawandel.

Reply 2 of 17, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

that is odd if it works with the linux version.

Water flows down the stream
How to ask questions the smart way!

Reply 3 of 17, by tron_thomas

User metadata
Rank Newbie
Rank
Newbie

I'm not exactly sure how the -freespace option is supposed to work. I could not find any documentation on it.

I tried:
mount c <path> -freespace

That did not work. I also tried:
mount c <path> -freespace 1000
and
mount c <path> -freespace=1000

neither of those worked either. How exactly is freespace supposed to be used?

Reply 4 of 17, by IIGS_User

User metadata
Rank Oldbie
Rank
Oldbie

Sorry, correct word is -freesize

Klimawandel.

Reply 6 of 17, by tron_thomas

User metadata
Rank Newbie
Rank
Newbie

Okay, I tried -freesize 1000, and I still get the error message

Reply 7 of 17, by tron_thomas

User metadata
Rank Newbie
Rank
Newbie

I found the documentation for mount in the ReadMe file. That is all well and good that the ReadMe contains the mount documentation.

It would seem more intuitive that is someome typed mount /? at the command prompt that it might list these features. One also might expect there to be documentation when they use the help command as well.

Reply 8 of 17, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

That's what intro is for, it tells you in the big blue box when you start dosbox. I'd also say that reading the ReadMe should be the most "intuitive". One might expect people to first read the documentation and/or turn to it when they have problems with something. If you had done this you would have realized it's freesize versus freespace....

Back to the problem, are you using similar mountings on OS X than on linux? Could you write them here? If turbo c++ isn't on the same place on on the emulated c drive it might behave like this.
Example: if turbo is on ~/dos/turbo and
on linux you do
Mount c ~/dos
and on os x you do
Mount c ~/dos/turbo
that might be a problem.

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 9 of 17, by tron_thomas

User metadata
Rank Newbie
Rank
Newbie

On both systems, I created a directory called CDrive in my Documents folder and I mounted the C drive in DOSBox to that directory. I used an ISO image to run the installation program for Turbo C++ from DOSBox itself to install the program.

On both systems the Turbo C++ program is located in C:\TC\BIN

Reply 10 of 17, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

Hmm, there goes that theory 🙁
Sounds as if you did all that correctly.

Next step would be running a debugger enabled dosbox.

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 11 of 17, by tron_thomas

User metadata
Rank Newbie
Rank
Newbie

How would someone run a debugger enabled dosbox?

Reply 13 of 17, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

AFAIK, TC++ 3.0 fails to start and displays the error "Disk full! Not enough swap space." when it fails to create its swap file for any reason. I suspect that you're still on DOSBox's Z: drive when you start TC.

TC needs to have C:\TC\BIN\;C:\TC\INCLUDE\;C:\TC\LIB\ added to the path, so it can be run from anywhere; and its default behavior is to create its swap file in the root directory of the current drive. So, after you've mounted a C: drive, you must change to that drive before starting TC, or you will get the error when it attempts to create its swap file on the Z: drive.

You can change TC's swap drive to something specific instead of "current"; the setting is under: Options, Environment, Startup.

Reply 14 of 17, by tron_thomas

User metadata
Rank Newbie
Rank
Newbie

I had C:\TC\BIN added to the path. I did not have C:\TC\INCLUDE and C:\TC\LIB, and it doesn't seem like one would need to as those paths should only be needed during compiling and linking, plus everything works on Linux with only C:\TC\BIN in the path.

I just found out that I can get Turbo C++ to run after all. I have to make sure to switch from the Z drive to C drive and then type the tc command. I'm not sure if that's how I got things to run on Linux, and I don't have Linux running right now to check.

Reply 16 of 17, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Of course you'll want the LIB and INCLUDE dirs in the path... or are you really planning to use TC without compiling anything?

Heh, I'll take your word for it that you discovered about switching away from Z: without reading my prior post; but I also mentioned *why* you have to do that, and how you can configure TC to get around that.

Reply 17 of 17, by tron_thomas

User metadata
Rank Newbie
Rank
Newbie

The include and lib paths don't need to be in the system path environment. Those paths are configured in the IDE for the project being developed.

Yes, reading ripsaw8080 post is what allowed me to discover that I needed to switch to the C drive. I didn't think I needed to do that on Linux. I just checked and I do get the same error message if I don't switch and stay on the Z drive. I guess I must have switched to the C drive on Linux before running the program, and never realized it.