Borland C++ 5.5.1 Trouble Shooting

February 6, 2010 at 19:27:52
Specs: Windows Vista
I just installed Borland C++ Version 5.5 onto my laptop about an hour ago, but no matter what I try, I can't seem to figure out how to properly execute a .cpp file through my Command Prompt. I'm sure that the program was installed correctly, and I followed the instructions included in the bcc55 folder. I think that the problem has something to do with linking the 'include' and 'lib' folders to the .cpp file with the configuration files. Here's what I have right now:

In c:\borland\bcc55:

(Bear in mind that those folders contain all the files they came with in the download.)
-ilink32.cfg (-I"C:\Borland\bcc55\lib")
-bcc32.cfg (-I"C:\Borland\bcc55\include"

Here are the contents of my user folder (C:\users\Matt):

-hello.cpp (Standard "Hello World!" file using stdio.h's printf function.)
(No idea what those last two are, but they were generated when I tried executing hello.cpp through the Command Prompt.)

I entered "bcc32 hello" into the Command Prompt under these conditions and received the following error message:

Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Error E2209 hello.cpp 1: Unable to open Include file 'stdio.h'
Error E2268 hello.cpp 5: Call to undefined function 'printf' in function main()
*** 2 errors in Compile ***

I understand why it couldn't compile the printf function being cut off from stdio.h, but what I don't get is why it failed to include that header file. I'm pretty sure I have the .cfg files in the right positions...

Anyway, if someone could help me, that'd be great. I'd very much like to get past these technical difficulties and start making some actual programs.

Thanks in advance!
-Dark Falz

See More: Borland C++ 5.5.1 Trouble Shooting

Report •

February 8, 2010 at 07:26:52
Check the documentation for configuration. Pay special attention to the Include directory and/or linker object directory.

Alternatively, pick a better complier. Both Visual Studio Express and Dev-Cpp include IDEs and are free.

Report •
Related Solutions

Ask Question