×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    21

    Error While Building

    I tried to get the Active profile on the handset by using the profileng.lib classes

    But when I make a build for the emulator, its giving me an undefined symbol reference, even though the hearder file is present in the include folder and lib file in the lib folder.I manually showed the path of it, But the error still persists.

    The following is the code I tried:

    In .cpp

    CProfileEvent::CProfileEvent()
    {
    iHandler = CProfileChangeNotifyHandler::NewL( this );
    }

    CProfileEvent::~CProfileEvent()
    {
    if( iHandler )
    {
    delete iHandler;
    iHandler = NULL;
    }
    }

    void CProfileEvent::HandleActiveProfileEventL(
    TProfileEvent aProfileEvent,
    TInt aProfileId )
    {
    switch(aProfileEvent)
    {
    case EProfileNewActiveProfile:
    case EProfileActiveProfileModified:
    {
    // mre requirement
    break;
    }
    default:
    {
    break;
    }
    }
    }


    In .h

    #include <e32base.h>
    #include <MProfileChangeObserver.h>
    #include <profileenginesdkcrkeys.h>
    #include <CProfileChangeNotifyHandler.h>

    class CProfileEvent : public MProfileChangeObserver
    {
    public:
    CProfileEvent();
    ~CProfileEvent();

    private:
    virtual void HandleActiveProfileEventL(TProfileEvent aProfileEvent, TInt aProfileId );

    private:
    CProfileChangeNotifyHandler* iHandler;
    };


    in .mmp

    library profileeng.lib

    Iam able to build without any errors for the Gcce release configuration. But it gives the error for the Emulator configuration:
    "undefined symbol CProfileChangeNotifyHandler"

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,684

    Re: Error While Building

    The SDK API Plugin does not contain WINSCW-libraries for Profile Engine API, so you cannot build your code for the emulator.

  3. #3
    Registered User
    Join Date
    Jan 2008
    Posts
    21

    Re: Error While Building

    Whats the solution for this then

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Error While Building

    build it for target build only and do debugging in real devices. For emulators you could comments any code using the API out and remove the library from the emulator library list.

Similar Threads

  1. Run a project
    By tkhdevxeon in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2007-02-18, 04:16
  2. carbide.c++ dll
    By tkhdevxeon in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2007-02-06, 20:16
  3. Carbide.C++ Express - HelloCarbide build problem
    By nokiapaul in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 3
    Last Post: 2006-07-09, 12:54
  4. Example Icons not shown : Please help !
    By Mauro_Nokia in forum Symbian
    Replies: 4
    Last Post: 2006-07-07, 09:25
  5. Helloworld build failure - help
    By tcalamawy in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2006-03-20, 17:38

Posting Permissions

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