1.

Solve : Non compiling compiler C++ (& DOS)?

Answer»

I downloaded the free Borland compiler for C++ and added BCC32.CFG and LINK32.CFG to the BIN folder but am not able to get it to work.

At first the error message was that it could not find the (source) file even when I changed to directories right to the folder that held it.

After numerous trials and errors it finally recognized the file containing the code. However there was a steady stream on code errors. This was not code I wrote but was very short from a tutorial on C++.

E2209 Unable to open include file isostream
E2282 Name space name expected
E2451 Unidentified symbol cout in function main ()

I tried running an example program from Borland and came up with 19 error messages.

More trial and error and now it cannot find/run BCC32 the compiler execute command.

I am running Windows XP on an HP laptop and use the command line prompt. Prior to downloading the compiler I had to reformat the hard drive (from the recovery disk that came with the computer).

DOS - I have very few dos commands available- find, tree, edit and other lead to error messages that these are not recognized commands.

Any help, suggestions, or references would be greatly appreciated.

THANKSAfter you formatted the drive did you reload XP? The commands you mentioned are all external to the OS which leaves me to believe you simply have a basic DOS system or a very incomplete XP system.

What lead up to you having to format the disk?

Let us know. Yes. I reinstalled XP and the drivers with the restore disks that came with the computer. The only thing I did not put back were the original applications because I have my own software that I reinstalled.

I had a bad virus that I eventually GOT rid of but I think remnants were still hiding on my computer. XP was not functioning correctly. For instance right clicking the mouse did not bring up a menu in windows although it did in some applications; internet explorer did not have an address bar and I could not get my toolbars back. Since reformatting, XP and IE are working correctly.

How can I get a more complete set of dos commands? Do you think it would be on the applications disk that came with the computer?

Why do you think the Borland compiler is not now working and at one point didn't recognize basic C++ coding?

Thanks for taking the time to respond.Check your path: set path from a command path. Both c:\windows and c:\windows\system32 should be on the path. If there are other directories on the path, don't worry about it.

Also, navigate to c:\windows\system32 from a command prompt. Use dir and check to see if find.exe, tree.com and edit.exe exist. Did you have any problems with the XP reinstall?

As for Borland, this link may help: http://www.stu.qmul.ac.uk/primer/borlandC.html

Hope this helps. The C:\>set path  results in a "Syntax error".
setpath = a "not recognized as an internal ...." error.
path results in "Path=";C:\BORLALND\BCC55\BIN"

I can find tree.com and find.exe but not edit.exe. There is however an edit.com, edit.hlp and an edlin.exe.

The link you referenced does not look like what I have. I downloaded the free compiler and that is all that is in there.

Should the DOS that comes with XP have all or most of the commands listed on sites that show DOS for Windows XP?


ThanksIt appears the C++ install mucked up your path, which would explain why you can't find edit, tree, find, and PROBABLY all the rest of the external commands. They're installed, Windows just can't find them.

Program installations usually insert or append to an existing path; not build one from scratch. According to Borland this is what should have happened (read the entire article). Did you encounter any problems during the install?

When you checked the path, was it from the MS-DOS prompt (command.com) or the Command prompt (cmd.exe)? There are separate paths for each one. The easiest way out is to do a system restore back to a date/time before C++ was installed. Since you've already done it once, you may want to re-load XP again.

In the future, create a restore point prior to program installations.

Good luck.

Note: NT, Win2000 and XP do not come with DOS; just an emulated version thereof.PROGRESS (I think)!

As long as I:

change the command prompt to C:\Windows\System32>
use the command Path=%Path%;C:\Borland\Bcc55\Bin
save the source code to the system32 folder

the computer will run Bcc32 and is able to find the source file.

That's the good news. The bad news is I still get an error message.

Turbo Incremental Link 5.0 for Win32 copyright 1993, 2000 Borland
Fatal: Illegal option: Lc:\Borland\Bcc55\Lib

A search found this expression but so far not how to cure an error message. Any suggestions how to get over this (hopefully last) hurtle?

Thanks
I probably found the same info as you, but I suspect the problem in the the .cfg file. You might want to checkout: C++

From what I have read, this is more than one persons nightmare.

Good luck.   Quote

I probably found the same info as you, but I suspect the problem in the the .cfg file. You might want to checkout: C++

From what I have read, this is more than one persons nightmare.

Good luck.  

This article along with some other info, experimentation and more careful TYPING in the ilink file did the trick. I am finally up and running as far as the compiler is concerned.

Thanks


Discussion

No Comment Found