🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.migration
Article #207

Re: Migrating from Builder 6 to Builder 2007

#207
From: Bob Lawson
Date: Mon, 22 Oct 2007 15:10
104 lines
5163 bytes
I have taken an application that we have developed for years, lastly under 
Borland Builder 6 and moved it to a new PC with CodeGear C++ Builder 2007. 
I open the project and it converts to a new project file.

Some modules build fine while one generates 51 errors.  The thing is the 
errors are showing up in system include files.

The first set of errors are:
[BCC32 Error] cstring(29): E2316 'string' is not a member of 'std'
    ( The line in cstring is:     using std::string;   )
[BCC32 Error] cstring(29): E2272 Identifier expected
[BCC32 Error] xstring(8): E2041 Incorrect use of default
[BCC32 Error] xstring(8): E2428 Templates must be classes or functions
[BCC32 Error] xstring(8): E2141 Declaration syntax error
[BCC32 Error] xstring(22): E2303 Type name expected
[BCC32 Error] xstring(22): E2275 { expected
[BCC32 Error] xstring(22): E2272 Identifier expected
[BCC32 Error] xstring(23): E2272 Identifier expected
[BCC32 Error] xstring(23): E2275 { expected
[BCC32 Error] xstring(27): E2139 Declaration missing ;
[BCC32 Error] xstring(29): E2139 Declaration missing ;
[BCC32 Error] xstring(214): E2139 Declaration missing ;
[BCC32 Error] xstring(326): E2303 Type name expected

If we take the first one the full parser context is(comments in brackets 
below):
    Annotation.cpp(3): #include Annotation.h
        ( There are no other includes or defines before this one.)
    Annotation.h(12): #include ..\General\vector_p.h
        (There are only system includes before this one.
            #ifndef AnnotationH
            #define AnnotationH

            #include <stddef.h>
            #include <Classes.hpp>
            #include <Graphics.hpp>
            #include <Types.hpp>
            #include <Dialogs.hpp>
            #include <ExtCtrls.hpp>
            #include <Math.hpp>
            /* #include "General.h" */
            #include "vector_p.h"  )
    vector_p.h(2): #include c:\program files\codegear\rad 
studio\5.0\include\vector.h
            ( there are no other includes or defines before this one.
            #pragma option push -w-pck

            #include <vector>
            #pragma option pop )
    vector.h(18): #include c:\program files\codegear\rad 
studio\5.0\include\dinkumware\vector
        ( The rest are all system include files. )
    vector(5): #include c:\program files\codegear\rad 
studio\5.0\include\dinkumware\memory
    memory(5): #include c:\program files\codegear\rad 
studio\5.0\include\dinkumware\xmemory
    xmemory(6): #include c:\program files\codegear\rad 
studio\5.0\include\dinkumware\xutility
    xutility(5): #include c:\program files\codegear\rad 
studio\5.0\include\dinkumware\utility
    utility(5): #include c:\program files\codegear\rad 
studio\5.0\include\dinkumware\iosfwd
    iosfwd(6): #include c:\program files\codegear\rad 
studio\5.0\include\cstring
    cstring(27): #include c:\program files\codegear\rad 
studio\5.0\include\dinkumware/string
    string(5): #include c:\program files\codegear\rad 
studio\5.0\include\dinkumware\istream
    istream(5): #include c:\program files\codegear\rad 
studio\5.0\include\dinkumware\ostream
    ostream(5): #include c:\program files\codegear\rad 
studio\5.0\include\dinkumware\ios
    ios(5): #include c:\program files\codegear\rad 
studio\5.0\include\dinkumware\xlocnum
    xlocnum(8): #include c:\program files\codegear\rad 
studio\5.0\include\dinkumware\streambuf
    streambuf(5): #include c:\program files\codegear\rad 
studio\5.0\include\dinkumware\xiosbase
    xiosbase(4): #include c:\program files\codegear\rad 
studio\5.0\include\dinkumware\xlocale
    xlocale(5): #include c:\program files\codegear\rad 
studio\5.0\include\cstring
        ( The error is in this file. )

I'm  not sure where to go with this one.

Bob


"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:4718e0b0@newsgroups.borland.com...
>
> "Bob Lawson" <bob.lawson@alcoa.com> wrote in message 
> news:4718d44e@newsgroups.borland.com...
>
>> I keep having errors with
>>    using std::string;  in cstring
>> and calls to To_String.
>
> Please be more specific.  What EXACTLY are you having a problem with?
>
>
> Gambit
> 
Technical Details
Message-ID: <471cbd67$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4718d44e@newsgroups.borland.com> <4718e0b0@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 110f51,973dd1ee12fc0bb5
X-Google-Attributes: gid110f51,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Bob Lawson" <bob.lawson@alcoa.com>
Newsgroups: borland.public.cppbuilder.migration
References: <4718d44e@newsgroups.borland.com> <4718e0b0@newsgroups.borland.com>
Subject: Re: Migrating from Builder 6 to Builder 2007
Date: Mon, 22 Oct 2007 11:10:23 -0400
Lines: 106
Organization: Alcoa
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 147.154.119.254
Message-ID: <471cbd67$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1193065831 147.154.119.254 (22 Oct 2007 08:10:31 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail