I must run Turbo C for the university. The install seemed to go alright, but when I try to run it I get: $ wine TC.EXE Warning: unprotecting memory to allow real-mode calls. NULL pointer accesses will no longer be caught. err:module:MZ_DoLoadImage insufficient DOS memory winevdm: can't exec 'C:\tc\BIN\TC.EXE': error=8 What should I do? I've 512 MB RAM- I can't imagine that Turbo C needs that much and more! Thanks. Dotan Cohen http://what-is-what.com
Dotan Cohen <dotancohen@gmail.com> wrote:> I must run Turbo C for the university. The install seemed to go > alright, but when I try to run it I get: > $ wine TC.EXE > Warning: unprotecting memory to allow real-mode calls. > NULL pointer accesses will no longer be caught. > err:module:MZ_DoLoadImage insufficient DOS memory > winevdm: can't exec 'C:\tc\BIN\TC.EXE': error=8 > > What should I do? I've 512 MB RAM- I can't imagine that Turbo C needsRead the error message. It clearly states that you do not have enough free _DOS_ memory.> that much and more!Indeed not. Such an ancient program runs on DOS, and that is the problem: You need something like dosemu, not wine. Daniel
Legine wrote:> What do you expect to apear? > > I would guess that it is onl a compiler... > so you need to pass a simple hello word c programm or so to it. > > Just a guess of course. > Peter > > Dotan Cohen schrieb: > >>On 10/07/06, Legine <legine.wine@web.de> wrote: >> >>>IMO Dosemu is just pain. It was difficult to setup and more diffcult to >>>maintain since it runs FreeDos in a VMware like envoirement or so. >>>I think you should try Dosbox like David Powell suggested. >>>Worked good for me. Thought I never had turbo c. >>> >>>cya >>>Peter >>> >> >>Thanks, dosbox seems easy to use, but maybe I'm doing something wrong >>with Turbo C itself. When I run tc.exe, I just get the prompt back. no >>error, but no running program. I wish that I only had a winbox to see >>what it does there. >> >>Dotan Cohen >>http://technology-sleuth.com >> > > >I have Turbo C++ 1.01 Copyright 1990 Borland International, Inc. It is an dos based IDE. I have run it under qemu, bochs and dos in a box. Paul R.
On 11/07/06, Paul Romanyszyn <arcelectronics@sc.rr.com> wrote:> Dotan Cohen wrote: > > > On 10/07/06, Paul Romanyszyn <arcelectronics@sc.rr.com> wrote: > > > >> I installed via rpm dosemu 1.2.2.0 via rpm. Compiling from source is a > >> problem to get freedos installed correctly. > > > > > > Yes, I have them installed, via apt-get. > > > >> In AN xterm > >> xdosemu > > > > > > dotancohen@ubuntu:~$ xdosemu > > > > You do not have the DOSEMU vga font installed and are running > > remote X. You need to install the vga font on your _local_ Xserver. > > Look at the readme for details. For now we start with an fixed font, > > which does not display all national characters correctly. > > ... be warned > > > > ERROR: Unable to open console to evaluate the keyboard map. > > Please specify your keyboard map explicitly via the $_layout option > > ERROR: X support not compiled in > > > > dotancohen@ubuntu:~$ sudo updatedb > > dotancohen@ubuntu:~$ locate dosemu | grep readme > > dotancohen@ubuntu:~$ > > > > As explicit as those error messages are, I'm unable to find the readme > > or to google anything relevant. > > > dosemu will run in a xterm. xdosemu makes it's own using the GUI. It may > require more parts of the dosemu project. > http://dosemu.org/ > I have compiled from source for several version but every time I would > upgrade my distro it required doing some research to get my eprom > programmer working on the printer port.Not sure that I follow you. What else must I install? Or better yet, where is that readme so that I can do wat it suggests?> >> This fires up freedos in a new xwindow with some text and a c:> > >> Copy tc.exe to the freedos C:\somedirectory > >> From the c:> > >> cd \somedirectory > >> tc > > > > > > When I do finally get to that point, would it suffice to just copy > > over TC.EXE? Doesn't that depend upon other files in the /TC > > directory? At least on /TC/BIN? > > > As a test I just copied the tc.exe. I am not using the debugger or > anything else in the IDE. I did see a tcconfig.exe which I did not copy > for the test. I was copying from a qemu/bochs installed simulated > harddrive. > There could be some problems with the turbodebugger or the IDE when it > tries to set breakpoints. > Wine will run BC++4.5 more or less. It will compile projects but won't > run them under the IDE. >Well, I do need to run them under the IDE. Otherwise I could just use Kate and gcc. For that matter, is there not a native linux app that lets one compile and run (an IDE)? I've tried Eclipse and Ajunta, but they don't seem to do C. Dotan Cohen http://what-is-what.com
Dotan Cohen wrote:> Well, I do need to run them under the IDE. Otherwise I could just use > Kate and gcc. > > For that matter, is there not a native linux app that lets one compile > and run (an IDE)? I've tried Eclipse and Ajunta, but they don't seem > to do C.OK, I am confused.... Are you trying to build a dos executable using Turbo C or a linux executable using gcc?
Dotan Cohen wrote:> I'm trying to learn C in the university! > > I don't really care where the program _can_ run, only that I can run > it from within the IDE. We're learning pointers and arrays and > recursive functions. We are not learning to build GUIs. So I can use > whatever compiles ANSI C, so long as it compiles from within the IDE > because I'll make five hundred small changes and I need to run after > each change. >OK, that sort of makes sense.... But I doubt you'll have much luck finding anything like Turbo C IDE for linux.... I used to use it quite a bit when it came out, but linux is just different.... IIRC correctly, you have an edit window, a run window, and an error window. Sort of like an editor, a shell running make and the resulting executable, and possibly another shell running gdb... The problem is that most of us in linux land are too damn picky and individualistic for a simple IDE to really gain popularity. I use kate for some projects due to its ability to collapse and expand blocks of code. I use vi for quick changes. I use cat and less and grep to scan files. Sometimes I use sed to make global changes. I use gedit sometimes instead of kate. I use cross-compilers and different versions of gcc. I use all sorts of stuff, and the collection of little tools I have is far richer than any single IDE. And I can tile my windows in X to look like an IDE, so what need have I for an IDE? So I doubt you'll find an IDE similar to Turbo C.... The only time you may find an IDE useful is for really complex tasks like dealing with Qt (yeccchhhh).
"Dotan Cohen" <dotancohen@gmail.com> writes:> see a penguin. However, if there is something _similar_ native to > linux that this newbie can install, I'd love to try it.gcc is the standard Linux compiler. -- Thanks, Renan(r) - Canoas/RS - LRU #390969 "3rd law of computing: Anything that can go wrong, will. Bus error (core dumped)"
"Dotan Cohen" <dotancohen@gmail.com> writes:>> Are you trying to build a dos executable using Turbo C or a linux >> executable using gcc? > > I'm trying to learn C in the university! > > I don't really care where the program _can_ run, only that I can run > it from within the IDE. We're learning pointers and arrays and > recursive functions. We are not learning to build GUIs. So I can use > whatever compiles ANSI C, so long as it compiles from within the IDE > because I'll make five hundred small changes and I need to run after > each change.emacs? -- Hilsen Harald.
On 11/07/06, Harald Arnesen <harald@skogtun.org> wrote:> emacs?Do elaborate!
"Dotan Cohen" <dotancohen@gmail.com> writes:> On 11/07/06, Harald Arnesen <harald@skogtun.org> wrote: >> emacs? > > Do elaborate!You can run gcc, make and gdb from within emacs, and have the results appear in a new buffer. -- Hilsen Harald.
Dotan Cohen wrote:> I'm trying to learn C in the university! > > I don't really care where the program _can_ run, only that I can run > it from within the IDE. We're learning pointers and arrays and > recursive functions. We are not learning to build GUIs. So I can use > whatever compiles ANSI C, so long as it compiles from within the IDE > because I'll make five hundred small changes and I need to run after > each change. >CptDondo wrote:> But I doubt you'll have much luck finding anything like Turbo C IDE forlinux.... That's probably true, still we use SciTE quite successfully in our students' lab. -- Helmut Jarausch Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany
Dotan Cohen wrote:> On 12/07/06, J?rg Schaible <joerg.schaible@gmx.de> wrote: > >> Try Eclipse with the CDT plugin. Might be easier than running an IDE with >> WINE. >> > > Most of the work I'm doing in Kdevelop. But this is work for the > university- and the work that I turn in must compile in Turbo C. I > cannot take the risk that it won't compile in Turbo C, so I must check > it. That is why I must run Turbo C. > > Dotan Cohen > http://essentialinux.comWhat version of Turbo C and date. As I remember tc 1. was dos based. At around 4. it was a win 3.11 or win32s. The options are dual boot to dos or window or get bochs, qemu or dosemu to work and use it as a virtual PC with your choice of OS installed. http://bochs.sourceforge.net/ http://fabrice.bellard.free.fr/qemu/ http://dosemu.org/ for the first 2 you will need to use mtools to transfer files in and out of the emulated harddrive. Once you have simulated harddrives and have a working bochs it is easy to let qemu use the simulated install and it will emulate a little faster. The turbodebugger should work under bochs and qemu. It may not work under dosemu. The other drawbacks on bochs and qemu is the number pad keys don't seem to work. I have used bochs but now use qemu to run a cross compiler for an embedded micro that only runs on dos 6.22 as it uses protected mode 32 bit instructions not allowed on win 95 dos. Paul
Dotan Cohen wrote:> On 12/07/06, Paul Romanyszyn <pgr@arcelectronicsinc.com> wrote: > >> What version of Turbo C and date. > > It's here on this page: > http://webcourse.cs.technion.ac.il/234112/Spring2006/en/ho_Turbo-C.html > As the filename is TURBOC30.exe I assume it's version 3.0. >Looking at the zip it is 1992 so Dos based not windows. In wine the install fails with dos protected mode instructions. So wine is not a solution. Under qemu running win 95 the install opens a dos box and seems ready to work. under Dosemu the installer also works. Paul
On 13/07/06, Paul Romanyszyn <pgr@arcelectronicsinc.com> wrote:> Looking at the zip it is 1992 so Dos based not windows. In wine the > install fails with dos protected mode instructions. So wine is not a > solution. > > Under qemu running win 95 the install opens a dos box and seems ready to > work. > > under Dosemu the installer also works. > Paul >You managed to install it, then? Would you mind just checking for me if you can open /BIN/TC.EXE and compile and run a hello world script? If it works, then I will exercise my maximum efforts to get it running under qemu. Thanks, Paul. I appreciate it. Dotan Cohen http://what-is-what.com
Hello Dotan, Consider using DosBox from http://dosbox.sourceforge.net/ I successfully installed and ran Turbo C from http://webcourse.cs.technion.ac.il/234112/Spring2006/en/ho_Turbo-C.html without any tweaking. I downloaded http://webcourse.cs.technion.ac.il/234112/Spring2006/ho/WCFiles/TURBOC30.zip, unzipped it and ran the install.exe installer. The Turbo C installed into C:\TC\ The IDE runs fine and I managed to compile and run a simple Hello world program that looked like this: <CODE> #include <iostream.h> main() { cout << "Hello world"; } </CODE> the output was as expected. I hope it will work for you too. -- regards Plamen Vassilev Software Engineer & System Administrator Bulgaria, Varna T: +359 52 644615 M: +359 899 989647 E: plamen.vassilev@gmail.com
Dotan Cohen wrote:> On 13/07/06, Plamen Vassilev <plamen.vassilev@gmail.com> wrote: > >> Hello Dotan, >> >> Consider using DosBox from http://dosbox.sourceforge.net/ >> I successfully installed and ran Turbo C from >> http://webcourse.cs.technion.ac.il/234112/Spring2006/en/ho_Turbo-C.html >> without any tweaking. >> I downloaded >> http://webcourse.cs.technion.ac.il/234112/Spring2006/ho/WCFiles/TURBOC30.zip, >> >> unzipped it and ran the install.exe installer. >> The Turbo C installed into C:\TC\ >> The IDE runs fine and I managed to compile and run a simple Hello world >> program that looked like this: >> >> <CODE> >> #include <iostream.h> >> main() >> { >> cout << "Hello world"; >> } >> </CODE> >> the output was as expected. >> >> I hope it will work for you too. >> >> -- >> regards >> Plamen Vassilev >> Software Engineer & System Administrator >> >> Bulgaria, Varna >> T: +359 52 644615 >> M: +359 899 989647 >> E: plamen.vassilev@gmail.com > > > Thanks, Plamen. I had no luck with dosbox, but I'll try it again. > Maybe this time I'll be more determined as I know that you had > succeeded. Thank you very much for installing and testing Turbo C. > > Dotan Cohen > http://what-is-what.com > > OT: We visited Varna in September 2004. We loved it and we'll definetly > be back! >When running Dosbox please remember that out of the box it will not run on and FC4 or 5 kernel past 2108. This may be due to some feature of SE Linux but it doesn't run even with SE shut off on later kernels. Some of the later kernels also seem to cause Wine to do strange things in the video. I haven't reported a problem because I haven't quite been able to figure out what is wrong.
I'm suprised to hear that it didn't work for you in dosbox, I installed and ran it in dosbox just now an it performed flawlessly. I compiled intro1.cpp from the examples directory and ran it, all from the IDE, no problem. Anyway I also copied the tc directory over to my qemu drive image and it also worked perfectly in qemu running win98 as guest operating system, under suse 10.1 host OS. so it is definately doable, and in my opinion well worth the effort. on a side note, it failed to run in dosemu, complaining about an "unknown error", which is odd because both turbo C 2.01 and borland C 3.1 work just fine in dosemu. on another side note borland C 3.1 also has a windows IDE that does run on wine, however it failed to compile complaining about a "Bad handle in SetBlockSize" in a linux dialog box. buck