Re: Learning borland.

From: Richard Heathfield (invalid_at_address.co.uk.invalid)
Date: 01/26/04


Date: Mon, 26 Jan 2004 07:10:38 +0000

Joec wrote:

> I have been learning the basics of C++ and I can get some programs to
> fun on dev c++. I try to write simple hello world programs with the
> borland builder and they won't run. How can I start writing simple
> programs with borland?

If you have installed C++ Builder, WELL DONE! It's a wonderful
implementation, and well worth the money.

C++ Builder is of course a GUI-building environment, and you almost
certainly want to write console programs to start off with. So drop to the
command line, find your program code, e.g.

#include <iostream>

using std::cout;
using std::endl;

int main()
{
  cout << "Hello, world!" << endl;

  return 0;
}

and type this to compile it:

bcc32 foo.cpp

(Unless Borland have mended their conformance issues recently, don't use the
-A switch that turns on conformance because, if you do, bcc32 can't compile
its own headers!)

I've provided this rather raw information in the interests of getting you up
and running quickly, but the other respondents to your article are, alas,
correct; this newsgroup is for helping you learn the language, not how to
drive your implementation.

(Personally, I don't think it does any harm to just tell language-newbies or
implementation-newbies how to get "hello world" running, if someone here
happens to know. Comments, anyone?)

-- 
Richard Heathfield : binary@eton.powernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton


Relevant Pages

  • Re: "Portable" C compilers?
    ... creating and compiling single source files a lot easier than ... Borland C++ Builder Version 6 Professional ... C++ is a different language. ...
    (comp.lang.c)
  • Re: Visual Studio 2005 Express in now permanently free...
    ... I call it constructive criticism. ... I'd agree Borland has a history of botching releases - C++ Builder, ... Kylix and finally Delphi. ... If I have to choose C++ Builder compared to VS Express, ...
    (borland.public.delphi.non-technical)
  • Re: borland vs. microsoft
    ... it is a language called "Object Pascal" ... ... the VCL pollutes the global namespace with all their own ... whenever a COM object is added to the project, Borland ... the MDI implementation in Borland Builder 5 was broken ... ...
    (comp.lang.cpp)
  • Re: Future of Java
    ... as a MicroSoft environment supported máin language. ... some open source projects, and a bit with Borland C++ Builder. ...
    (comp.lang.java.programmer)
  • Re: Serial Port problem
    ... >> If I want to run this code in Linux or other platform? ... > Java comm api in the one ypu are running? ... I have installed comm in both Borland J Builder and Sun's stand-alone ...
    (comp.lang.java.programmer)