I did this settings in project seetings in earlier. But in vain.
The problem coming is with derived classes in shared library. If I am not
using the derived classes its OK.
Regards,
Saradhi.
----- Original Message -----
Turn on the C++ compiler in the project settings (Language Settings->C/C++
Language-> check 'Activate C++ Compiler) and make sure you file has the cpp
extension (don't know if that is still a requirement but it wouldn't hurt)
----- Original Message -----
From: "SaradhiDV" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Friday, September 05, 2003 8:00 AM
Subject: New:Derived class problems in the shared library????
> Hai all,
>
> I am new to Palm OS dev and to this group.
>
> While I am trying to compile this code on Code warrior in shared lib, I am
> getting
> errors.
>
> The key words of C++ like class,public,..etc r not being identified.This
> behaviour is same for each and every class. Does i need to set any c++
> settings like force c++ compilation n all.
>
> I included the code snippet and errors.
>
> If any of you know the reason for these errors and how to get rid of
> these, please help me.
>
> Thanks in advance.
> Regards,
> Saradhi.
>
> class CStarter
> {
> public:
>
> CStarter();
> ~CStarter();
>
> // Our one and only internal function
> void StarterLibMain (void);
> void AttachString (char* string);
> void* ReturnString();
> //virtual void DummyMessage();
> };
>
> class CStarter1::public CStarter
> {
> CStarter1();
> ~CStarter1();
> };
>
> /////////////////ERRORS/////////////////////////////////////////
> ror : undefined identifier 'CStarter1'
> StarterLib.h line 30 class CStarter1::public CStarter
>
> Error : declaration syntax error
> StarterLib.h line 31 {
>
> Error : declaration syntax error
> StarterLib.h line 32 CStarter1();
>
> Error : declaration syntax error
> StarterLib.h line 33 ~CStarter1();
>
> Error : declaration syntax error
> StarterLib.h line 34 };
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/