Anfängerfehler??



  • Hallo!

    Ich möchte eine lib für eine spezielle GUI einbinden und habe gem. der Programmdoku die Einträge gemacht.

    Beim compilieren bekomme ich aber eine etwas seltsame Fehlermeldung:

    ../Toolbox/Toolbox.c:4: error: expected ‘)’ before ‘myFunTab’

    Die sources sind:
    Toolbox.h:

    //----------------------------------------------------------
    // deletes Set by Label
    //----------------------------------------------------------
    int DeleteSet(
      const_mddcFunctionTable_ptr, // FunctionPointerTable
      char*, // Label of Set to be deleted
      int    // Debug flag: 0: no debug output/ > 0 debug output
    );
    

    und Toolbox.c

    //####################################################################################################
    // F U N K T I O N   DeleteSet
    //####################################################################################################
    int DeleteSet(const_mddcFunctionTable_ptr myFunTab, char* Label, int Debug){
    
    int i; 
    char* SetLabel=NULL;
    int RetVal;
    int rc =0 ;
    
      if (Debug)printf("search for Setlabel..: '%s' [%i]\n",Label,(int)strlen(Label));
    
      for (i = 1; i <= myFunTab->Set->dsSetAnzGet(); i++){
    
        myFunTab->Set->dsSetLabelGet (i, &SetLabel);
    
        if (strcmp(SetLabel, Label )      == 0){
          if (Debug)printf("DELETED: Set %2i Label: '%s' [%i]\n",i,SetLabel,(int)strlen(SetLabel));
          rc = myFunTab->Set->dsSetDelete(i);
        }
    
      }
    
      if (rc > 0) RetVal=1;
    
      return (RetVal);
    
    }
    

    Kann mir jemand auf die Sprünge helfen, warum da ein ) vor myFunTab stehen muß?
    Für mich sieht das i.O. aus...

    Ciao

    OkkaPapa



  • Der Typ const_mddcFunctionTable_ptr ist in toolbox.c nicht bekannt, vielleicht fehlt ein #include.



  • Bashar schrieb:

    Der Typ const_mddcFunctionTable_ptr ist in toolbox.c nicht bekannt, vielleicht fehlt ein #include.

    Hallo!

    Das wars...

    DANKE!


Anmelden zum Antworten