×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    35

    function call does not match error

    Just added a new class to a project, getting the following "unidentified symbol" errors:


    Errors caused tool to abort.
    make[1]: *** [\Symbian\9.2\S60_3rd_FP1\EPOC32\RELEASE\WINSCW\UDEB\TestAudio.exe] Error 1
    make: *** [TARGETTESTAUDIO] Error 2
    make -j 4 -s -C \Symbian\Carbide\workspace\TestAudio\group -f "ICONS_AIF_SCALABLE_DC.MK" TO_ROOT=..\..\..\..\.. EPOCBLD=..\..\..\..\..\Symbian\9.2\S60_3rd_FP1\EPOC32\BUILD\Symbian\Carbide\workspace\TestAudio\group\ICONS_AIF_SCALABLE_DC\WINSCW TO_BLDINF=..\..\..\..\..\Symbian\Carbide\workspace\TestAudio\group PLATFORM=WINSCW CFG=UDEB BLD
    make -j 4 -s -r -f "\Symbian\9.2\S60_3rd_FP1\EPOC32\BUILD\Symbian\Carbide\workspace\TestAudio\group\TESTAUDIO\WINSCW\TESTAUDIO.WINSCW" UDEB
    mwldsym2.exe: Undefined symbol: 'void CTrackData::SetTrackProgress(int) (?SetTrackProgress@CTrackData@@QAEXH@Z)'
    mwldsym2.exe: referenced from 'void CTestAudioContainer::StateUpdate(enum CMdaAudioClipUtility::TState, int, int) (?StateUpdate@CTestAudioContainer@@UAEXW4TState@CMdaAudioClipUtility@@HH@Z)' in TestAudioContainer.cpp:294
    mwldsym2.exe: Undefined symbol: 'void CTrackData::SetTracklength(int) (?SetTracklength@CTrackData@@QAEXH@Z)'
    mwldsym2.exe: referenced from 'void CTestAudioContainer::StateUpdate(enum CMdaAudioClipUtility::TState, int, int) (?StateUpdate@CTestAudioContainer@@UAEXW4TState@CMdaAudioClipUtility@@HH@Z)' in TestAudioContainer.cpp:295
    mwldsym2.exe: Undefined symbol: 'int CTrackData::GetTrackLength(void) (?GetTrackLength@CTrackData@@QAEHXZ)'
    mwldsym2.exe: referenced from 'void CTestAudioContainer::StateUpdate(enum CMdaAudioClipUtility::TState, int, int) (?StateUpdate@CTestAudioContainer@@UAEXW4TState@CMdaAudioClipUtility@@HH@Z)' in TestAudioContainer.cpp:296
    mwldsym2.exe: Undefined symbol: 'int CTrackData::GetTrackProgress(void) (?GetTrackProgress@CTrackData@@QAEHXZ)'
    mwldsym2.exe: referenced from 'void CTestAudioContainer::StateUpdate(enum CMdaAudioClipUtility::TState, int, int) (?StateUpdate@CTestAudioContainer@@UAEXW4TState@CMdaAudioClipUtility@@HH@Z)' in TestAudioContainer.cpp:296


    The header is included so i'm not really sure what i'm missing - perhaps some library? Any ideas?

    Cheers.

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

    Re: function call does not match error

    you also need to inclcude teh required libraries into you mmp file.

  3. #3
    Registered User
    Join Date
    Aug 2009
    Posts
    35

    Re: function call does not match error

    Hmm, i thought it might have something to do with the mmp. What are the "required libraries"? All i have included in the TrackData header is aknutils.

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: function call does not match error

    It is simple, just you have to decide what CTrackData is:
    - if it is a "system API" (originating from the SDK or from some plugin), you have to open the related documentation, and check which library you need, and add a reference to it into the .mmp (as LIBRARY xy.lib)
    - if it is your own code, you should make sure that the .cpp file containing its definition is referred in the .mmp (as SOURCE xy.cpp)

  5. #5
    Registered User
    Join Date
    Aug 2009
    Posts
    35

    Re: function call does not match error

    that's the thing, it is in the .mmp :/

    Code:
    TARGET			TestAudio.exe
    UID			   0x100039CE 0xEFE68EB7
    VENDORID	  	  0
    TARGETTYPE		exe
    EPOCSTACKSIZE	 0x5000
    
    SYSTEMINCLUDE \epoc32\include \epoc32\include\variant \epoc32\include\ecom
    USERINCLUDE	   ..\inc ..\data
    
    SOURCEPATH		..\data
    START RESOURCE	TestAudio.rss
    HEADER
    TARGETPATH resource\apps
    END //RESOURCE
    
    START RESOURCE	TestAudio_reg.rss
    TARGETPATH 	  \private\10003a3f\apps
    END //RESOURCE
    
    LIBRARY			euser.lib apparc.lib cone.lib eikcore.lib avkon.lib
    LIBRARY			commonengine.lib efsrv.lib estor.lib eikcoctl.lib eikdlg.lib 
    LIBRARY			eikctl.lib bafl.lib aknnotify.lib aknicon.lib etext.lib gdi.lib egul.lib insock.lib ecom.lib InetProtUtil.lib http.lib esock.lib mediaclientaudio.lib bitgdi.lib fbscli.lib
    
    LANG 				01
    
    START BITMAP	TestAudio.mbm
    HEADER
    TARGETPATH		\resource\apps
    SOURCEPATH		..\gfx
    SOURCE	c12,1	list_icon.bmp list_icon_mask.bmp
    END
    
    SOURCEPATH		..\src
    
    #ifdef ENABLE_ABIV2_MODE
    DEBUGGABLE_UDEBONLY
    #endif
    
    SOURCE TestAudioContainerView.cpp TestAudioContainer.cpp TestAudioApplication.cpp TestAudioAppUi.cpp TestAudioDocument.cpp AudioPlayer.cpp CExampleTimer.cpp TrackData.cpp

    It's just a small piece of my own code. Can anyone see what's missing?

  6. #6
    Registered User
    Join Date
    Aug 2009
    Posts
    35

    Re: function call does not match error

    Ok, found my error, completely forgot to prefix the methods with CTrackData::

    Cheers guys.

Similar Threads

  1. 'ctsydomainpskeys.h' cannot be opened... ?
    By satishkatta in forum Symbian Tools & SDKs
    Replies: 23
    Last Post: 2010-05-07, 03:23
  2. Working on emulator but not on the phone!!!
    By bravvve in forum Symbian
    Replies: 7
    Last Post: 2009-09-23, 06:01
  3. [newbie here] Link error
    By xitpu in forum Symbian
    Replies: 3
    Last Post: 2007-01-24, 16:53
  4. problem with the XML Parser SyExpat
    By Vitaly_iva in forum Symbian
    Replies: 2
    Last Post: 2006-06-05, 11:09

Posting Permissions

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