-
borland c++ problem
Yooo i just downloaded borland c++ 5.5.1 and its been giving error... example
Code:
#inlcude <stdio.h>
int main()
{
printf ("Datainjector");
return 0;
}
Its comiles and says error could not open stdio.h and if i use cin and cout it says could not open oistrem, error cin, error cout..
What can be the problem do i have to link the header files???
this is command i used (bcc32 - c ) to compiler
-
you misspelled #include
iostreams are only allowed in c++ (which i assume you're using). you have to include
#include <iostream.h>
in your program for them to work.
-
well yes its a spelling mistake this was not the code i used to compile with it.Well borland hlp file says that use the options -lf and type ur include directory but it isnt working and yeah i am using multi-edit 9.0b as my IDE ..
-
Is your include directories set correctly?
-
You have to create two .cfg configuration files for bcc32.exe and ilink32.exe. These files must be placed within the bin folder.
Assuming your path to be c:\borland\bcc55, put these two lines in bcc32.cfg..
-I"c:\borland\bcc55\include"
-L"c:\borland\bcc55\lib;c:\borland\bcc55\lib\psd k"
this line in ilink32.cfg..
-L"c:\borland\bcc55\lib;c:\borland\bcc55\lib\psd k"