Board index » cppbuilder » unable to compile BASIC ansi program, ide newbie needs help

unable to compile BASIC ansi program, ide newbie needs help

Hi there,

I am finding it impossible to compile even a hello world program which makes
use of iostream.
I am using C++ builder 6.0 and have gone through the console wizard. The
only thing I have changed is the
language compatibility so it is ansi and not borland. The program compiles
fine under borland but not under ansi
my include path is as follows

$(BCB)\include;$(BCB)\include\vcl

It seems that c_locale.h under $(BCB)\include\stl will not compile (I have
not included the stl in the console wizard)
this is probably a path thing could someone help me out as I am new to
ide's.

Krystan

 

Re:unable to compile BASIC ansi program, ide newbie needs help


On Thu, 23 May 2002 09:25:22 -0000, "Krystan Honour"

Quote
<khon...@software.plasmon.com> wrote:
>I am finding it impossible to compile even a hello world program which makes
>use of iostream. ... I have changed ... the
>language compatibility so it is ansi and not borland.

Forget about using the ANSI option. It is of little or no use.
The compiler has to pull in too much overhead which is
non-ANSI in order to create the types of target objects
which this compiler creates. Probably the only code which
could be compiled cleanly using the ANSI option is code
which doesn't use *any* compiler library functions/headers.

--
Wayne A. King
(ba...@torfree.net, wayne.k...@ablelink.org,
 wak...@idirect.com, Wayne_A_K...@compuserve.com)

Other Threads