Identifier expected

Discussion in 'C++' started by Ami, Feb 4, 2008.

  1. Ami

    Ami Guest

    Dear Friends I have the following piece of code


    // Class declaration in tssDCE.h as below

    #include "tssclifStructs.h"
    #include "commonUtility.h"
    #include "tssglob.h"
    #include "tssUIn.h"
    #include "tssodss.h"
    #include "tssccu.h"
    #include "tss_mesh.h"

    class CTssclifUtility : public CCommonUtility
    {
    public :
    CTssclifUtility();
    virtual ~CTssclifUtility();

    void CopyToSoapTSS_USER_PROFILE_T(TssUserProfileT &,
    tss_user_profile_t *);

    tss_user_profile_t* m_pUserProfile;
    };



    //// IN tssDCE.cpp , the function is defined as below

    void CTssclifUtility::CopyToSoapTSS_USER_PROFILE_T(TssUsrProfileT &
    feStruct, tss_user_profile_t * lclStruct)
    {
    if(lclStruct->user_info.user_uuid!=NULL)
    {
    feStruct->userInfo->userUuid=(char*)lclStruct->user_info.user_uuid;
    }
    feStruct->userInfo->userSecInfoStatus=(char*)lclStruct-
    >user_info.user_sec_info_status;

    feStruct->userInfo->userId=(char*)lclStruct->user_info.user_id;
    feStruct->userInfo->userName=(char*)lclStruct->user_info.user_name;
    feStruct->userInfo->employeeId=(char*)lclStruct-
    >user_info.employee_id;


    }

    while compiling , Im getting the following errors
    rror 24: "tssclifDCE.cpp", line 21 # '<identifier>' expected instead
    of 'tss_user_profile_t'.
    tility::CopyToSoapTSS_USER_PROFILE_T(TssUsrProfileT & feStruct,
    tss_user_profile_t * lclStruct)

    ^^^^^^^^^^^^^^^^^^
    Error 373: "tssclifDCE.cpp", line 21 # Old-style function definition
    parameter must be a simple identifier.
    void CTssclifUtility::CopyToSoapTSS_USER_PROFILE_T(TssUsrProfileT
    & feStruct, tss_user_profile_t * lclStruct)

    ^^^^^^^^^^^^^^^^^^^^^^^^^
    Error 373: "tssclifDCE.cpp", line 21 # Old-style function definition
    parameter must be a simple identifier.
    SS_USER_PROFILE_T(TssUsrProfileT & feStruct, tss_user_profile_t *
    lclStruct)

    ^^^^^^^^^^^
    Error 43: "tssclifDCE.cpp", line 21 # C++ does not allow Old-style
    (non-prototype) function definitions.
    void CTssclifUtility::CopyToSoapTSS_USER_PROFILE_T(TssUsrProfile
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Error 388: "../header/tssclifDCE.h", line 22 # Member function "void
    CTssclifUtility::CopyToSoapTSS_USER_PROFILE_T()" was not declared in
    class CTssclifUtility
    ["../header/tssclifDCE.h", line 16].
    void CopyToSoapTSS_USER_PROFILE_T(TssUserProfileT &,
    tss_user_profile

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Error 445: "tssclifDCE.cpp", line 21 # Cannot recover from earlier
    errors.
    void CTssclifUtility::CopyToSoapTSS_USER_PROFILE_T(TssUsrProfile
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    *** Error exit code 2

    for 1st error of identifier expected in
    CopyToSoapTSS_USER_PROFILE_T(TssUsrProfileT & feStruct,
    tss_user_profile_t * lclStruct)
    im not sure why it asks for that

    also for the error Member function "void
    CTssclifUtility::CopyToSoapTSS_USER_PROFILE_T()" was not declared in
    class CTssclifUtility
    in tssDCE.h we have the function declaration
     
    Ami, Feb 4, 2008
    #1
    1. Advertising

  2. Ami

    Ami Guest

    On Feb 4, 10:37 am, Ami <> wrote:
    > Dear Friends I have the following piece of code
    >
    > // Class declaration in tssDCE.h as below
    >
    > #include "tssclifStructs.h"
    > #include "commonUtility.h"
    > #include "tssglob.h"
    > #include "tssUIn.h"
    > #include "tssodss.h"
    > #include "tssccu.h"
    > #include "tss_mesh.h"
    >
    > class CTssclifUtility : public CCommonUtility
    > {
    > public :
    >         CTssclifUtility();
    >         virtual ~CTssclifUtility();
    >
    >         void CopyToSoapTSS_USER_PROFILE_T(TssUserProfileT &,
    > tss_user_profile_t *);
    >
    >         tss_user_profile_t*                             m_pUserProfile;
    >
    > };
    >
    > //// IN tssDCE.cpp , the function is defined as below
    >
    > void CTssclifUtility::CopyToSoapTSS_USER_PROFILE_T(TssUsrProfileT &
    > feStruct, tss_user_profile_t * lclStruct)
    > {
    >         if(lclStruct->user_info.user_uuid!=NULL)
    >         {
    >                 feStruct->userInfo->userUuid=(char*)lclStruct->user_info.user_uuid;
    >         }
    >         feStruct->userInfo->userSecInfoStatus=(char*)lclStruct->user_info.user_sec_info_status;
    >
    >         feStruct->userInfo->userId=(char*)lclStruct->user_info.user_id;
    >         feStruct->userInfo->userName=(char*)lclStruct->user_info..user_name;
    >         feStruct->userInfo->employeeId=(char*)lclStruct-
    >
    > >user_info.employee_id;

    > }
    >
    > while compiling , Im getting the following errors
    > rror 24: "tssclifDCE.cpp", line 21 # '<identifier>' expected instead
    > of 'tss_user_profile_t'.
    >     tility::CopyToSoapTSS_USER_PROFILE_T(TssUsrProfileT & feStruct,
    > tss_user_profile_t * lclStruct)
    >
    > ^^^^^^^^^^^^^^^^^^
    > Error 373: "tssclifDCE.cpp", line 21 # Old-style function definition
    > parameter must be a simple identifier.
    >     void CTssclifUtility::CopyToSoapTSS_USER_PROFILE_T(TssUsrProfileT
    > & feStruct, tss_user_profile_t * lclStruct)
    >
    > ^^^^^^^^^^^^^^^^^^^^^^^^^
    > Error 373: "tssclifDCE.cpp", line 21 # Old-style function definition
    > parameter must be a simple identifier.
    >     SS_USER_PROFILE_T(TssUsrProfileT & feStruct, tss_user_profile_t *
    > lclStruct)
    >
    > ^^^^^^^^^^^
    > Error 43: "tssclifDCE.cpp", line 21 # C++ does not allow Old-style
    > (non-prototype) function definitions.
    >     void CTssclifUtility::CopyToSoapTSS_USER_PROFILE_T(TssUsrProfile
    >     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    > Error 388: "../header/tssclifDCE.h", line 22 # Member function "void
    > CTssclifUtility::CopyToSoapTSS_USER_PROFILE_T()" was not declared in
    > class CTssclifUtility
    >     ["../header/tssclifDCE.h", line 16].
    >             void CopyToSoapTSS_USER_PROFILE_T(TssUserProfileT &,
    > tss_user_profile
    >
    > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    > Error 445: "tssclifDCE.cpp", line 21 # Cannot recover from earlier
    > errors.
    >     void CTssclifUtility::CopyToSoapTSS_USER_PROFILE_T(TssUsrProfile
    >     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    > *** Error exit code 2
    >
    > for 1st error of identifier expected in
    > CopyToSoapTSS_USER_PROFILE_T(TssUsrProfileT & feStruct,
    > tss_user_profile_t * lclStruct)
    > im not sure why it asks for that
    >
    > also for the error Member function "void
    > CTssclifUtility::CopyToSoapTSS_USER_PROFILE_T()" was not declared in
    > class CTssclifUtility
    > in tssDCE.h we have the function declaration


    Errors got resolved
     
    Ami, Feb 4, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. barry

    expected identifier error

    barry, Dec 24, 2005, in forum: ASP .Net
    Replies:
    6
    Views:
    5,804
    barry
    Dec 25, 2005
  2. Kobu
    Replies:
    7
    Views:
    479
  3. Replies:
    2
    Views:
    1,809
  4. Replies:
    2
    Views:
    930
    Owen Jacobson
    Dec 11, 2007
  5. S_K
    Replies:
    0
    Views:
    682
Loading...

Share This Page