[omniORB] pure virtual function was not defined

Dietmar May dcmay@object-workshops.com
Wed, 9 Sep 1998 13:25:42 -0700


> interface CDR{
> =A0=A0=A0 ...
> =A0=A0=A0=A0 short goout(in short recordPos);=A0
> =A0=A0=A0 ...
> };
> =A0
> class _sk_CDR :=A0 public virtual CDR {
> ...
> ...=A0
> virtual CORBA::Short=A0 goout ( CORBA::Short=A0 recordPos ) =3D =
0;=A0=A0=A0=A0=A0=A0=A0 =3D>
> pure virtual function=A0
> ...
> ...
> };
> In my _i.h file I have the folowing class=A0
> =A0
> class CDR_i : public virtual _sk_CDR{
> ...=A0
> ...=A0
> virtual CORBA::Short goout (const short recordCount);


Change 'const short' to CORBA::short. A short and const short are two
different animals, as far as the compiler is concerned.


> ...
> ...=A0
> };=A0
> =A0