Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor
    Join Date
    Jul 2007
    Location
    Chennai, India
    Posts
    78

    Question illegal use of abstract class error...

    hi...

    while building the project i am getting the following error....

    but i am not using the " MAknTabObserver::TabChangedL " method in my program...


    illegal use of abstract class ('MAknTabObserver::TabChangedL(int)')

    please anyone help me...

  2. #2
    Super Contributor
    Join Date
    Oct 2005
    Posts
    739

    Re: illegal use of abstract class error...

    Hi,

    Have you declared TabChangedL(TInt ) in your header file?

    regards,
    Peter

  3. #3
    Super Contributor
    Join Date
    Jul 2007
    Location
    Magnitogorsk, Russia
    Posts
    536

    Re: illegal use of abstract class error...

    Quote Originally Posted by peter_k_john View Post
    Hi,

    Have you declared TabChangedL(TInt ) in your header file?

    regards,
    Peter
    or remove inheritance from MAknTabObserver in your AppUi class

  4. #4
    Regular Contributor
    Join Date
    Jul 2007
    Location
    Chennai, India
    Posts
    78

    Re: illegal use of abstract class error...

    i removed MAknTabObserver...

    Its showing more than 40 errors..

    like below...


    Severity and Description Path Resource Location Creation Time Id
    Undefined symbol: 'class TTime TPosition::Time(void) const (?Time@TPosition@@QBE?AVTTime@@XZ)'[] Sample_GPS Unknown 1187337641554 1670
    Undefined symbol: 'class TTime TPositionSatelliteInfo::SatelliteTime(void) const (?SatelliteTime@TPositionSatelliteInfo@@QBE?AVTTime@@XZ)'[] Sample_GPS Unknown 1187337641554 1677
    Undefined symbol: 'class TUid TPositionInfoBase::ModuleId(void) const (?ModuleId@TPositionInfoBase@@QBE?AVTUid@@XZ)'[] Sample_GPS Unknown 1187337641538 1661
    Undefined symbol: 'double TCoordinate::Latitude(void) const (?Latitude@TCoordinate@@QBENXZ)'[] Sample_GPS Unknown 1187337641538 1665
    Undefined symbol: 'double TCoordinate::Longitude(void) const (?Longitude@TCoordinate@@QBENXZ)'[] Sample_GPS Unknown 1187337641538 1666
    Undefined symbol: 'float TCoordinate::Altitude(void) const (?Altitude@TCoordinate@@QBEMXZ)'[] Sample_GPS Unknown 1187337641554 1667
    Undefined symbol: 'float TCourse::Heading(void) const (?Heading@TCourse@@QBEMXZ)'[] Sample_GPS Unknown 1187337641554 1675
    Undefined symbol: 'float TCourse::HeadingAccuracy(void) const (?HeadingAccuracy@TCourse@@QBEMXZ)'[] Sample_GPS Unknown 1187337641554 1676
    Undefined symbol: 'float TCourse::Speed(void) const (?Speed@TCourse@@QBEMXZ)'[] Sample_GPS Unknown 1187337641554 1673
    Undefined symbol: 'float TCourse::SpeedAccuracy(void) const (?SpeedAccuracy@TCourse@@QBEMXZ)'[] Sample_GPS Unknown 1187337641554 1674
    Undefined symbol: 'float TLocality::HorizontalAccuracy(void) const (?HorizontalAccuracy@TLocality@@QBEMXZ)'[] Sample_GPS Unknown 1187337641554 1668
    Undefined symbol: 'float TLocality::VerticalAccuracy(void) const (?VerticalAccuracy@TLocality@@QBEMXZ)'[] Sample_GPS Unknown 1187337641554 1669
    Undefined symbol: 'int RPositioner::Open(class RPositionServer &) (?Open@RPositioner@@QAEHAAVRPositionServer@@@Z)'[] Sample_GPS Unknown 1187337641538 1654
    Undefined symbol: 'int RPositioner::SetRequestor(int, int, class TDesC16 const &) (?SetRequestor@RPositioner@@QAEHHHABVTDesC16@@@Z)'[] Sample_GPS Unknown 1187337641538 1655
    Undefined symbol: 'int RPositioner::SetUpdateOptions(class TPositionUpdateOptionsBase const &) (?SetUpdateOptions@RPositioner@@QAEHABVTPositionUpdateOptionsBase@@@Z)'[] Sample_GPS Unknown 1187337641538 1656
    Undefined symbol: 'int RPositionerSubSessionBase::CancelRequest(int) (?CancelRequest@RPositionerSubSessionBase@@QAEHH@Z)'[] Sample_GPS Unknown 1187337641538 1651
    Undefined symbol: 'int RPositionServer::Connect(void) (?Connect@RPositionServer@@QAEHXZ)'[] Sample_GPS Unknown 1187337641538 1653
    Undefined symbol: 'int RPositionServer::GetModuleInfoById(class TUid, class TPositionModuleInfoBase &) const (?GetModuleInfoById@RPositionServer@@QBEHVTUid@@AAVTPositionModuleInfoBase@@@Z)'[] Sample_GPS Unknown 1187337641538 1659
    Undefined symbol: 'int TPositionSatelliteInfo::NumSatellitesInView(void) const (?NumSatellitesInView@TPositionSatelliteInfo@@QBEHXZ)'[] Sample_GPS Unknown 1187337641554 1678
    Undefined symbol: 'int TPositionSatelliteInfo::NumSatellitesUsed(void) const (?NumSatellitesUsed@TPositionSatelliteInfo@@QBEHXZ)'[] Sample_GPS Unknown 1187337641554 1679
    Undefined symbol: 'RPositioner::RPositioner(void) (??0RPositioner@@QAE@XZ)'[] Sample_GPS Unknown 1187337641538 1641
    Undefined symbol: 'RPositionServer::RPositionServer(void) (??0RPositionServer@@QAE@XZ)'[] Sample_GPS Unknown 1187337641538 1640
    Undefined symbol: 'TCourse::TCourse(void) (??0TCourse@@QAE@XZ)'[] Sample_GPS Unknown 1187337641554 1671
    Undefined symbol: 'TPosition::TPosition(void) (??0TPosition@@QAE@XZ)'[] Sample_GPS Unknown 1187337641538 1663
    Undefined symbol: 'TPositionInfo::TPositionInfo(void) (??0TPositionInfo@@QAE@XZ)'[] Sample_GPS Unknown 1187337641538 1642
    Undefined symbol: 'TPositionModuleInfo::TPositionModuleInfo(void) (??0TPositionModuleInfo@@QAE@XZ)'[] Sample_GPS Unknown 1187337641538 1658
    Undefined symbol: 'TPositionSatelliteInfo::TPositionSatelliteInfo(void) (??0TPositionSatelliteInfo@@QAE@XZ)'[] Sample_GPS Unknown 1187337641538 1643
    Undefined symbol: 'TPositionUpdateOptions::TPositionUpdateOptions(void) (??0TPositionUpdateOptions@@QAE@XZ)'[] Sample_GPS Unknown 1187337641538 1644
    Undefined symbol: 'unsigned long TPositionModuleInfo::ClassesSupported(enum TPositionClassFamily) const (?ClassesSupported@TPositionModuleInfo@@QBEKW4TPositionClassFamily@@@Z)'[] Sample_GPS Unknown 1187337641538 1662
    Undefined symbol: 'void RPositioner::Close(void) (?Close@RPositioner@@QAEXXZ)'[] Sample_GPS Unknown 1187337641538 1649
    Undefined symbol: 'void RPositioner::GetLastKnownPosition(class TPositionInfoBase &, class TRequestStatus &) const (?GetLastKnownPosition@RPositioner@@QBEXAAVTPositionInfoBase@@AAVTRequestStatus@@@Z)'[] Sample_GPS Unknown 1187337641538 1657
    Undefined symbol: 'void RPositioner::NotifyPositionUpdate(class TPositionInfoBase &, class TRequestStatus &) const (?NotifyPositionUpdate@RPositioner@@QBEXAAVTPositionInfoBase@@AAVTRequestStatus@@@Z)'[] Sample_GPS Unknown 1187337641538 1652
    Undefined symbol: 'void RPositionServer::Close(void) (?Close@RPositionServer@@QAEXXZ)'[] Sample_GPS Unknown 1187337641538 1650
    Undefined symbol: 'void TPositionCourseInfo::GetCourse(class TCourse &) const (?GetCourse@TPositionCourseInfo@@QBEXAAVTCourse@@@Z)'[] Sample_GPS Unknown 1187337641554 1672
    Undefined symbol: 'void TPositionInfo::GetPosition(class TPosition &) const (?GetPosition@TPositionInfo@@QBEXAAVTPosition@@@Z)'[] Sample_GPS Unknown 1187337641538 1664
    Undefined symbol: 'void TPositionModuleInfo::GetModuleName(class TDes16 &) const (?GetModuleName@TPositionModuleInfo@@QBEXAAVTDes16@@@Z)'[] Sample_GPS Unknown 1187337641538 1660
    Undefined symbol: 'void TPositionUpdateOptions::SetAcceptPartialUpdates(int) (?SetAcceptPartialUpdates@TPositionUpdateOptions@@QAEXH@Z)'[] Sample_GPS Unknown 1187337641538 1648
    Undefined symbol: 'void TPositionUpdateOptionsBase::SetMaxUpdateAge(class TTimeIntervalMicroSeconds) (?SetMaxUpdateAge@TPositionUpdateOptionsBase@@QAEXVTTimeIntervalMicroSeconds@@@Z)'[] Sample_GPS Unknown 1187337641538 1647
    Undefined symbol: 'void TPositionUpdateOptionsBase::SetUpdateInterval(class TTimeIntervalMicroSeconds) (?SetUpdateInterval@TPositionUpdateOptionsBase@@QAEXVTTimeIntervalMicroSeconds@@@Z)'[] Sample_GPS Unknown 1187337641538 1645
    Undefined symbol: 'void TPositionUpdateOptionsBase::SetUpdateTimeOut(class TTimeIntervalMicroSeconds) (?SetUpdateTimeOut@TPositionUpdateOptionsBase@@QAEXVTTimeIntervalMicroSeconds@@@Z)'[] Sample_GPS Unknown 1187337641538 1646

  5. #5
    Super Contributor
    Join Date
    Oct 2005
    Posts
    739

    Re: illegal use of abstract class error...

    Hi,
    Don't remove MAknTabObserver and include decleration of void TabChangedL(TInt aIndex); in your appui's header file.

    Regards,
    Peter

  6. #6
    Regular Contributor
    Join Date
    Jul 2007
    Location
    Chennai, India
    Posts
    78

    Re: illegal use of abstract class error...

    hi,

    i declared TabChangedL(TInt aIndex); in appui's header file...

    then also i am getting the same 40 errors...

  7. #7
    Registered User
    Join Date
    Mar 2006
    Posts
    28

    Re: illegal use of abstract class error...

    I allways forget zo set the lib.
    perhaps you dont link against Lbs.lib or forgot to include the header file.

  8. #8
    Super Contributor
    Join Date
    May 2006
    Location
    Beijing,China
    Posts
    1,190

    Re: illegal use of abstract class error...

    Quote Originally Posted by kannabiran.krish View Post
    hi...

    while building the project i am getting the following error....

    but i am not using the " MAknTabObserver::TabChangedL " method in my program...


    illegal use of abstract class ('MAknTabObserver::TabChangedL(int)')

    please anyone help me...
    maybe it is pure virtual function, and you do not implement it.
    [I][COLOR="Orange"]xhsoldier[/COLOR][/I]
    [email]xhsoldier@gmail.com[/email]/[email]xhsoldier@163.com[/email]

Similar Threads

  1. i cant build helloworld project
    By akhin in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2008-12-22, 13:38
  2. 编译3rd Sample程序时的LINK错误
    By mapk in forum Symbian
    Replies: 9
    Last Post: 2008-06-17, 04:26
  3. code warrior problems
    By mayankkedia in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2004-10-25, 06:59
  4. problem with codewarrior 5.2
    By mayankkedia in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2004-09-27, 16:08
  5. Replies: 0
    Last Post: 2002-09-24, 13:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×