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

Builder 5 -> Builder 2007 migration tough

4 views
Skip to first unread message

Julian

unread,
Apr 22, 2008, 6:37:32 PM4/22/08
to
Hi,
I have both Builder 5 and Builder 2007 and I am trying to migrate the
project to the new Builder IDE. However, I get stuck on compilation
errors. For example:
in the
sampleHeaderFile.h I have:

class RGBValue {
public:
RGBValue ();
RGBValue (short _R, short _G, short _B);
~RGBValue () {};
short R, G, B;
void Assign (short _R, short _G, short _B);
void CopyRGB (RGBValue * SourceRGB);
bool Empty;
//operators
RGBValue operator+(RGBValue&);
RGBValue operator-(RGBValue&);
RGBValue operator/(int&);
RGBValue operator/(float&);
RGBValue operator/(double&);
RGBValue operator*(int&);
RGBValue operator*(float&);
RGBValue operator*(double&);

};
//---------------------------------------------------------------------------
class RGBArray {
public:
RGBArray (int _nx, int _ny);
~RGBArray ();
int nx, ny;
RGBValue ** XY;
...
etc.,
}
At RGBValue ** XY; I get type name expected error (E2303)
compiling with Builder 2007, while I didn't have problems with Builder 5.
Any suggestions?

Leo Siefert

unread,
Apr 23, 2008, 10:17:02 AM4/23/08
to
Julian wrote:

>At RGBValue ** XY; I get type name expected error (E2303)

Once the final ; is added to the class declaration the code you
supplied compiles without error in RAD Studio 2007. Either you have
left out something that is actually causing the error (a #define macro
for "XY" perhaps) or you have not installed the updates to your
Builder 2007 install.

- Leo

Julian

unread,
Apr 23, 2008, 12:02:31 PM4/23/08
to
Thanks Leo,
I didn't realize the update was that important. Currently, I have
Builder 11.0.2804.9245 and the update seems to be kind of complicated.
It is not clear from which one to start and there is a lot to read about it.
Thanks for the help,
Julian

Leo Siefert wrote:
>

Leo Siefert

unread,
Apr 24, 2008, 8:17:29 AM4/24/08
to
Julian wrote:

>I didn't realize the update was that important.

I don't think that it is the issue here, but I am testing with the
December update applied and don't have any way to test with the
version you are using so I included it as a possibility.

>the update seems to be kind of complicated.
>It is not clear from which one to start

There are two updates to that version. The most important is the
December 2007 update. You should be able to just download it and run
the installer - the installation should be basically automatic.

There is another hotfix available which I have not yet applied to my
installation, but the number of issues it fixes is rather limited.

- Leo

0 new messages