×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    42

    菜鳥求救!SIP 錯誤訊息!

    source code :
    http://hikoseijuroh.myweb.hinet.net/sipex.rar

    .xml 放置於 C:\

    按照 SIP Programmer's Guide ,可是卻出現一堆錯誤,到底哪裡錯了?
    請幫忙新手!多謝!

    錯誤訊息
    Code:
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(19): error C2018: unknown character '0xa1'
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(19): error C2018: unknown character '0xa6'
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(63): error C2039: 'CreateSIPInviteDialogAssoc' : is not a member of 'CSIPExample'
            C:\MyDOC\Symbian\SIPExample\inc\CSIPEngine.h(28) : see declaration of 'CSIPExample'
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(27): error C2039: 'ExecuteL' : is not a member of 'CSIPExample'
            C:\MyDOC\Symbian\SIPExample\inc\CSIPEngine.h(28) : see declaration of 'CSIPExample'
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(132): error C2059: syntax error : '}'
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(132): error C2059: syntax error : '}'
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(21): error C2061: syntax error : identifier 'CSIPExample'
    c:\MyDOC\Symbian\SIPExample\src\SIPExampleAppUi.cpp(31): error C2065: 'CSIPExample' : undeclared identifier
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(44): error C2065: 'iConnection' : undeclared identifier
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(34): error C2065: 'iProfile' : undeclared identifier
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(32): error C2065: 'iProfileRegistry' : undeclared identifier
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(30): error C2065: 'iSIP' : undeclared identifier
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(49): error C2065: 'iSIPClientTransaction' : undeclared identifier
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(46): error C2065: 'iSIPInviteDialogAssoc' : undeclared identifier
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(30): error C2065: 'iUid' : undeclared identifier
    c:\MyDOC\Symbian\SIPExample\src\SIPExampleAppUi.cpp(31): error C2065: 'KUidCSIPExampleWrapper' : undeclared identifier
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(21): error C2065: 'self' : undeclared identifier
    c:\MyDOC\Symbian\SIPExample\src\SIPExampleAppUi.cpp(31): error C2065: 'sipExample' : undeclared identifier
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(19): error C2143: syntax error : missing ';' before '*'
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(132): error C2143: syntax error : missing ';' before '}'
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(44): error C2227: left of '->ConnectionL' must point to class/struct/union
            type is ''unknown-type''
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(23): error C2227: left of '->ConstructL' must point to class/struct/union
            type is ''unknown-type''
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(34): error C2227: left of '->DefaultProfileL' must point to class/struct/union
            type is ''unknown-type''
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(37): error C2227: left of '->EnableL' must point to class/struct/union
            type is ''unknown-type''
    c:\MyDOC\Symbian\SIPExample\src\SIPExampleAppUi.cpp(32): error C2227: left of '->ExecuteL' must point to class/struct/union
            type is ''unknown-type''
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(49): error C2227: left of '->SendInviteL' must point to class/struct/union
            type is ''unknown-type''
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(19): error C2259: 'CSIPExample' : cannot instantiate abstract class
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(64): error C2365: 'CreateSIPInviteDialogAssoc' : redefinition; previous definition was a 'formerly unknown identifier'
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(20): error C2371: 'CSIPExample::NewL' : redefinition; different basic types
            C:\MyDOC\Symbian\SIPExample\inc\CSIPEngine.h(35) : see declaration of 'CSIPExample::NewL'
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(107): error C2373: 'CSIPExample' : redefinition; different type modifiers
            src\CSIPEngine.cpp(19) : see declaration of 'CSIPExample'
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(20): error C2501: 'CSIPExample::NewL' : missing storage-class or type specifiers
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(85): error C2509: 'ProfileRegistrationStatusChanged' : member function not declared in 'CSIPExample'
            C:\MyDOC\Symbian\SIPExample\inc\CSIPEngine.h(28) : see declaration of 'CSIPExample'
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(127): error C2511: 'void CSIPExample::IncomingRequest(CSIPServerTransaction *)' : overloaded member function not found in 'CSIPExample'
            C:\MyDOC\Symbian\SIPExample\inc\CSIPEngine.h(28) : see declaration of 'CSIPExample'
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(114): error C2511: 'void CSIPExample::IncomingResponse(CSIPClientTransaction &,CSIPDialogAssocBase &)' : overloaded member function not found in 'CSIPExample'
            C:\MyDOC\Symbian\SIPExample\inc\CSIPEngine.h(28) : see declaration of 'CSIPExample'
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(19): error C2512: 'CSIPExample' : no appropriate default constructor available
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(108): error C2541: 'delete' : cannot delete objects that are not pointers
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(20): error C2556: 'int *CSIPExample::NewL(TUid)' : overloaded function differs only by return type from 'CSIPExample *CSIPExample::NewL(TUid)'
            C:\MyDOC\Symbian\SIPExample\inc\CSIPEngine.h(35) : see declaration of 'CSIPExample::NewL'
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(106): error C2588: '::~CSIPExample' : illegal global destructor
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(30): error C2673: 'ExecuteL' : global functions do not have 'this' pointers
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(32): error C2673: 'ExecuteL' : global functions do not have 'this' pointers
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(37): error C2673: 'ExecuteL' : global functions do not have 'this' pointers
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(21): error C2676: binary '*' : 'CSIPExample' does not define this operator or a conversion to a type acceptable to the predefined operator
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(47): error C3861: 'CreateSIPInviteDialogAssoc': identifier not found, even with argument-dependent lookup
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(77): error C3861: 'iConnection': identifier not found, even with argument-dependent lookup
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(37): error C3861: 'iProfile': identifier not found, even with argument-dependent lookup
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(44): error C3861: 'iProfile': identifier not found, even with argument-dependent lookup
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(79): error C3861: 'iProfile': identifier not found, even with argument-dependent lookup
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(34): error C3861: 'iProfileRegistry': identifier not found, even with argument-dependent lookup
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(37): error C3861: 'iProfileRegistry': identifier not found, even with argument-dependent lookup
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(44): error C3861: 'iProfileRegistry': identifier not found, even with argument-dependent lookup
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(32): error C3861: 'iSIP': identifier not found, even with argument-dependent lookup
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(108): error C3861: 'iSIP': identifier not found, even with argument-dependent lookup
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(49): error C3861: 'iSIPInviteDialogAssoc': identifier not found, even with argument-dependent lookup
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(22): error C3861: 'self': identifier not found, even with argument-dependent lookup
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(23): error C3861: 'self': identifier not found, even with argument-dependent lookup
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(25): error C3861: 'self': identifier not found, even with argument-dependent lookup
    c:\MyDOC\Symbian\SIPExample\src\SIPExampleAppUi.cpp(32): error C3861: 'sipExample': identifier not found, even with argument-dependent lookup
    c:\MyDOC\Symbian\SIPExample\src\CSIPEngine.cpp(109): warning C4508: 'CSIPExample' : function should return a value; 'void' return type assumed
    Last edited by wgarnett; 2005-09-23 at 17:01.

  2. #2
    Registered User
    Join Date
    Feb 2004
    Posts
    1,980
    可能是非法字符引起的,另外可能缺少某些成员或声明。

    r60600

  3. #3
    Super Contributor
    Join Date
    Mar 2005
    Posts
    3,076

    Re: 新手求救!錯誤訊息!

    检查CSIPExample类声明,缺少类成员函数或语法错误
    I'd just be the catcher in the rye
    hoolee

Posting Permissions

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