Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Cannot Compile Existing Project

2 views
Skip to first unread message

John Kolvereid

unread,
Apr 5, 2007, 6:23:57 PM4/5/07
to

I am trying to get a project written in Borland C++ Builder
v6 to work on my Developer Studio 2006 evaluation copy (before I spring
for the license). To date, I have been unable to compile. My major
roadblock is when it chokes because it is "Unable to open include file
'assert'" This is specified in the source file as:
#include <assert>
which is correct. Also the configurations seem ok for both the Paths and
Defines sections of C++: Compiler: $(BDS)\include
Linker: $(BDS)\lib
where $(BDS) points to my C:\Program Files\Borland\BDS\4.0. I presume
that was installed w/ the Developer Studio. I am able compile if I change it to the older method:
#include <assert.h> (but choose not to because there are too many)

Please note that I typically work w/ the MS Visual Studio which is
installed on my PC. I shouldn't think that it would interfere w/ the
Borland Developer Studio.

Any help you can offer within a short time would be greatly appreciated.

David Dean [CodeGear]

unread,
Apr 6, 2007, 1:24:11 AM4/6/07
to
In article <461568ed$1...@newsgroups.borland.com>,
"John Kolvereid" <od...@op.net> wrote:

> To date, I have been unable to compile. My major
> roadblock is when it chokes because it is "Unable to open include file
> 'assert'" This is specified in the source file as:
> #include <assert>
> which is correct. Also the configurations seem ok for both the Paths and
> Defines sections of C++: Compiler: $(BDS)\include
> Linker: $(BDS)\lib

IIRC, you need to have $(BDS)\include\dinkumware in the include paths
for the compiler.

--
-David Dean
CodeGear C++ QA Engineer
<http://blogs.codegear.com/ddean/>

john Kolvereid

unread,
Apr 6, 2007, 10:36:14 AM4/6/07
to
Thx David,

Your fix works. But I am not sure why that wasn't 'included' w/ the install. Maybe not w/ the evaluation copy.

David Dean [CodeGear]

unread,
Apr 7, 2007, 12:35:06 AM4/7/07
to
In article <46164cce$1...@newsgroups.borland.com>,
"john Kolvereid" <od...@op.net> wrote:

> Your fix works. But I am not sure why that wasn't 'included' w/ the
> install. Maybe not w/ the evaluation copy.

New projects should have it by default. Imported projects don't have
their include paths changed.

Thomas Maeder [TeamB]

unread,
Apr 7, 2007, 2:31:26 AM4/7/07
to
"John Kolvereid" <od...@op.net> writes:

> I am trying to get a project written in Borland C++ Builder
> v6 to work on my Developer Studio 2006 evaluation copy (before I spring
> for the license). To date, I have been unable to compile. My major
> roadblock is when it chokes because it is "Unable to open include file
> 'assert'" This is specified in the source file as:
> #include <assert>
> which is correct.

Which is wrong! There is no Standard header <assert> in either C or
C++.

Either do it the C way:

#include <assert.h>

or the C++ way:

#include <cassert>

0 new messages