We help IT Professionals succeed at work.

Too many types in declaration

faxx
faxx asked
on
I get the following error at line 3 of an header file:

E2176 Too many types in declaration

I'm using Borland C++ Builder 5.0

Here's the source code of Collection_de_cartes_d_affaires.h:

#include "Carte_d_affaires.h"

  class Collection_de_cartes_d_affaires
  {

    protected:
       int m_iNB_CARTES_MAX;
       Carte_d_affaires * p_tab_collection[100];

    public:
    Collection_de_cartes_d_affaires();
    bool AjouterCarte(Carte_d_affaires * carte, int iPosition);
    Carte_d_affaires * RetirerCarte(int iPosition);
    Carte_d_affaires * Retourner_carte(int iPosition);
    int RechercherCarte(char szPrenom[], char szNom[]);
    void DetruireCollection();
    bool CarteExiste(int iPosition);
  };
Comment
Watch Question

AxterSenior Software Engineer

Commented:
Please post the code in "Carte_d_affaires.h"

Author

Commented:
Here's the code in "Carte_d_affaires.h":

----------------------------------------------

class Carte_d_affaires
{
     protected :
          char m_szNom[80];
          char m_szPrenom[80] ;
          char m_szEntreprise[80];
          char m_szTitre[30];
          char m_szTelephone[14];
          char m_szTelecopieur[14];
          char m_szCourriel[40];

     public :

          void Initialiser_Carte(char szNom[], char szPrenom[], char szEntreprise[], char szTitre[], char szTelephone[], char szTelecopieur[], char szCourriel[]);

          void Modifier_Nom(char szNouveauNom[]);

          void Modifier_Prenom(char szNouveauPrenom[]);

          void Modifier_Entreprise(char szNouvelEntreprise[]);

          void Modifier_Titre(char szNouveauTitre[]);

          void Modifier_Telephone(char szNouveauTelephone[]);

          void Modifier_Telecopieur(char szNouveauTelecopieur[]);

          void Modifier_Courriel(char szNouveauCourriel[]);

    char * RetournerNom();

    char * RetournerPrenom();

}
Senior Software Engineer
Commented:
Your class is missing a semicolon at the end.

Did you just forget to put the semicolon on your post?

Commented:
I had this error because of missing semicolon in the other class in other file of my project.