Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
744 views
in Technique[技术] by (71.8m points)

Why is Turbo C++ showing this error in DOSBox on my Mac?

I don't understand why it couldn't recognise #include <iostream.h>. I have mounted it in my C drive

The link for the image of the error is here:

The error it shows:

What does "Unable to create output file mean?

ERROR 2 ERROR 3

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Your Installation must be faulty! I've a mac, in fact, I'm currently running TurboC++ on it as I type. Consider uninstalling and then reinstalling.

Download Here

Download the package just like you would download a .dmg application from the net. (i.e. Drag and dropping the application into the Applications folder) Make sure that your Applications folder is global with respect to your system. What I mean is that:

  • Click on the "GO" option in the menu bar on top when in Finder.
  • Select "Computer" from the drop down menu.
  • Now click on your hard drive in the new window that opened.
  • You will find an "Applications" folder there. Thats where your TurboC++ should be.

Note: The TurboC++ you download from the link above will be a folder inside which you will find many other folders and the application: TurboC++, which is actually DosBox. One of the important folder is TC which contains the BIN folder where your source codes will be stored.

Go to Launchpad, and start Turbo C++. Then type the following commands:

mount c: /Applications/TurboC++
<press enter>
c:
<press enter>
cd tc
<press enter>
cd bin
<press enter>
tc

It is case sensitive so be careful.

This is how it should look: This is how it should look


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...