Thursday, July 30, 2009

C++ programming, Error E2194; could not find file hello.cpp?

I am trying to run a simple program and I've installed Borland C++ compiler for free on my computer. The code is supposed to simply write Hello World, on the screen in the command prompt box. The book I have tells me to type in bcc32 hello.cpp into the command prompt box to run the program, but I get the error message. It recognizes the bcc32 command, but then runs the E2194 message. I had to change the path in environment variables first since the bcc32 was not recognized at first, but after changing the path, this works. I have also created the two necessary text files bcc32.cfg and ilink32.cfg. The path is c:\Borland\Bcc55\Bin. I have the hello.cpp program in what I think is the right spot, but it seems to not be able to find it. Can anyone help me. I need to know how to tell the computer or program where to "look" for this file.

C++ programming, Error E2194; could not find file hello.cpp?
Borland is outdated!





Get a better compiler, like Dev-C++ (it's free, see sources).


Once you've installed it, click File (toolbar) %26gt; New %26gt; Project...


From there it'll give you a few program types.. (you can click the 'Introduction' tab for the Hello World example).





Have fun,


Dys.
Reply:dys is right you know dev-c++ rocks

jasmine

No comments:

Post a Comment