i am new to programing, i installed borland 5.5.1 c++ compiler so i practice my self.But i got some problems trying to compile, i dont know if the problem is from the i installed the compiler or something else.
Below are the program i wrote and their compilation error.

program 1

#include <iostream.h>

int main (void)
{
	cout << "Hello World\n";

}

result 1
c:\Users\eddieee\Documents>bcc32 hello.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
HELLO.cpp:
Error E2209 HELLO.cpp 1: Unable to open include file 'iostream.h'
Error E2451 HELLO.cpp 5: Undefined symbol 'cout' in function main()
*** 2 errors in Compile ***

program 2

#include <stdio.h>

int main(void)
{
printf("Hello world!\n");
return 0;
}

result 2
c:\Users\eddieee\Documents>bcc32 helloworld.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
helloworld.cpp:
Error E2209 helloworld.cpp 1: Unable to open include file 'stdio.h'
Error E2268 helloworld.cpp 5: Call to undefined function 'printf' in

function ma
in()
*** 2 errors in Compile ***

can someone please help me out?

You didn't set up the config files.

Assuming the bin directory is C:\Program Files\Borland\BCC55\Bin\ , create these two files in the bin directory:

BCC32.CFG
-I"C:\PROGRA~1\Borland\BCC55\Include"
-L"C:\PROGRA~1\Borland\BCC55\Lib"

ILINK32.CFG
-L"C:\PROGRA~1\Borland\BCC55\Lib"

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.