IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

 C++ Discussion :

expected unqualified id before 'namespace


Sujet :

C++

  1. #1
    Membre régulier
    Femme Profil pro
    Inscrit en
    Octobre 2011
    Messages
    10
    Détails du profil
    Informations personnelles :
    Sexe : Femme

    Informations forums :
    Inscription : Octobre 2011
    Messages : 10
    Par défaut expected unqualified id before 'namespace
    Sakut a tous
    j'écris un programme en C++ et j'ai l'erreur "expected unqualified id before 'namespace'" quand j'essaie de compiler. je pense avoir localisé la ligne qui pose probleme puisque qd je la commente, celle ci disparait. Néanmoins je ne sais pas quel est le probleme.

    function.h

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
     
    #ifndef FUNCTION_H_INCLUDED
    #define FUNCTION_H_INCLUDED
     
    #include <string>
    #include <vector>
    /*
    *Ensemble des fonctions utilisées par les différentes classes
    *
    */
    std::vector <std::string> extractSbstr(std::string chaine,char charSeparateur);
    std::string getConfig(std::string section,std::string cle,std::string nomFichier);//LIGNE OU IL Y A L'ERREUR(du moins je crois)
    std::string convertIntString(int entier);
    int convertStringInt(std::string chaine);
    int mysqlconnect(std::string DB);
    struct tm setDate(int jour,int mois,int an,int heur,int mn,int s);
    int getYear();
    #endif // FUNCTION_H_INCLUDED
    function.cpp
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
     
    #include <Windows.h>
    #include <ing>
    #include "function.h"
    #include <sstream>
    #include <winsock.h>
    #include <MYSQL/mysql.h>
    #include <ctime>
    #include <vector>
    using namespace std;
     
    string getConfig(string section,string cle,string nomFichier)
    {
        string valeur;
        nomFichier=".//"+nomFichier;
        GetPrivateProfileStringA(section, cle, "0", valeur, 5, nomFichier );
        return (valeur);
    }
    Merci pour votre aide.

  2. #2
    r0d
    r0d est déconnecté
    Membre expérimenté

    Homme Profil pro
    Développeur informatique
    Inscrit en
    Août 2004
    Messages
    4 288
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Ain (Rhône Alpes)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Août 2004
    Messages : 4 288
    Billets dans le blog
    2
    Par défaut
    Bonjour,

    je ne suis pas certain à 100%, mais j'ai plutôt l'impression que l'erreur vient de la ligne suivante:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    struct tm setDate(int jour,int mois,int an,int heur,int mn,int s);
    Essaie d'enlever 'struct' pour voir =>
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    tm setDate(int jour,int mois,int an,int heur,int mn,int s);

  3. #3
    Membre Expert

    Homme Profil pro
    Développeur informatique
    Inscrit en
    Septembre 2007
    Messages
    1 895
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 49
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Septembre 2007
    Messages : 1 895
    Par défaut
    Citation Envoyé par r0d Voir le message
    Bonjour,

    je ne suis pas certain à 100%, mais j'ai plutôt l'impression que l'erreur vient de la ligne suivante:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    struct tm setDate(int jour,int mois,int an,int heur,int mn,int s);
    Essaie d'enlever 'struct' pour voir =>
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    tm setDate(int jour,int mois,int an,int heur,int mn,int s);
    Ca doit compiler - c'est une survivance du C due au fait que tm n'est pas un typedef et est dans une section extern "C".

    Par contre, le compilateur est censé donner un message d'erreur ET un numéro de ligne à laquelle ce message d'erreur apparait. Si on pouvais avoir cette information, de manière a savoir vraiment ou regarder, ça ne serait pas du luxe
    [FAQ des forums][FAQ Développement 2D, 3D et Jeux][Si vous ne savez pas ou vous en êtes...]
    Essayez d'écrire clairement (c'est à dire avec des mots français complets). SMS est votre ennemi.
    Evitez les arguments inutiles - DirectMachin vs. OpenTruc ou G++ vs. Café. C'est dépassé tout ça.
    Et si vous êtes sages, vous aurez peut être vous aussi la chance de passer à la télé. Ou pas.

    Ce site contient un forum d'entraide gratuit. Il ne s'use que si l'on ne s'en sert pas.

  4. #4
    Membre régulier
    Femme Profil pro
    Inscrit en
    Octobre 2011
    Messages
    10
    Détails du profil
    Informations personnelles :
    Sexe : Femme

    Informations forums :
    Inscription : Octobre 2011
    Messages : 10
    Par défaut
    Oui. Deja merci pour vos reponses. Voici les messages du compilateur.


    -------------- Build: Debug in callTrackerServer ---------------

    Compiling: src\Appel.cpp
    In file included from c:\program files\codeblocks\mingw\bin\../lib/gcc/mingw32/4.4.1/include/c++/vector:63,
    from c:\program files\codeblocks\mingw\bin\../lib/gcc/mingw32/4.4.1/../../../../include/function.h:4,
    from C:\Users\HP\Desktop\Cplusplus - Copie\callTrackerServer\src\Appel.cpp:2:
    c:\program files\codeblocks\mingw\bin\../lib/gcc/mingw32/4.4.1/include/c++/bits/stl_construct.h:62: error: expected unqualified-id before 'namespace'
    Process terminated with status 1 (0 minutes, 0 seconds)
    1 errors, 0 warnings


    Ca aide?

  5. #5
    Membre éprouvé
    Profil pro
    Inscrit en
    Novembre 2004
    Messages
    2 766
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2004
    Messages : 2 766
    Par défaut
    Nous ne disposons pas du fichier Appel.cpp.

  6. #6
    Membre régulier
    Femme Profil pro
    Inscrit en
    Octobre 2011
    Messages
    10
    Détails du profil
    Informations personnelles :
    Sexe : Femme

    Informations forums :
    Inscription : Octobre 2011
    Messages : 10
    Par défaut
    Et juste au cas ou, voici le contenu du fichier stl_construct (auquel je n'ai absolument pas touche). L'erreur serait a la ligne 62.


    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
     
    // nonstandard construct and destroy functions -*- C++ -*-
     
    // Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
    // Free Software Foundation, Inc.
    //
    // This file is part of the GNU ISO C++ Library.  This library is free
    // software; you can redistribute it and/or modify it under the
    // terms of the GNU General Public License as published by the
    // Free Software Foundation; either version 3, or (at your option)
    // any later version.
     
    // This library is distributed in the hope that it will be useful,
    // but WITHOUT ANY WARRANTY; without even the implied warranty of
    // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    // GNU General Public License for more details.
     
    // Under Section 7 of GPL version 3, you are granted additional
    // permissions described in the GCC Runtime Library Exception, version
    // 3.1, as published by the Free Software Foundation.
     
    // You should have received a copy of the GNU General Public License and
    // a copy of the GCC Runtime Library Exception along with this program;
    // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
    // <http://www.gnu.org/licenses/>.
     
    /*
     *
     * Copyright (c) 1994
     * Hewlett-Packard Company
     *
     * Permission to use, copy, modify, distribute and sell this software
     * and its documentation for any purpose is hereby granted without fee,
     * provided that the above copyright notice appear in all copies and
     * that both that copyright notice and this permission notice appear
     * in supporting documentation.  Hewlett-Packard Company makes no
     * representations about the suitability of this software for any
     * purpose.  It is provided "as is" without express or implied warranty.
     *
     *
     * Copyright (c) 1996,1997
     * Silicon Graphics Computer Systems, Inc.
     *
     * Permission to use, copy, modify, distribute and sell this software
     * and its documentation for any purpose is hereby granted without fee,
     * provided that the above copyright notice appear in all copies and
     * that both that copyright notice and this permission notice appear
     * in supporting documentation.  Silicon Graphics makes no
     * representations about the suitability of this software for any
     * purpose.  It is provided "as is" without express or implied warranty.
     */
     
    /** @file stl_construct.h
     *  This is an internal header file, included by other library headers.
     *  You should not attempt to use it directly.
     */
     
    #ifndef _STL_CONSTRUCT_H
    #define _STL_CONSTRUCT_H 1
     
    #include <new>
     
    _GLIBCXX_BEGIN_NAMESPACE(std)
     
      /**
       * Constructs an object in existing memory by invoking an allocated
       * object's constructor with an initializer.
       */
      template<typename _T1, typename _T2>
        inline void
        _Construct(_T1* __p, const _T2& __value)
        {
          // _GLIBCXX_RESOLVE_LIB_DEFECTS
          // 402. wrong new expression in [some_]allocator::construct
          ::new(static_cast<void*>(__p)) _T1(__value);
        }
     
      /**
       * Destroy the object pointed to by a pointer type.
       */
      template<typename _Tp>
        inline void
        _Destroy(_Tp* __pointer)
        { __pointer->~_Tp(); }
     
      template<bool>
        struct _Destroy_aux
        {
          template<typename _ForwardIterator>
            static void
            __destroy(_ForwardIterator __first, _ForwardIterator __last)
    	{
    	  for (; __first != __last; ++__first)
    	    std::_Destroy(&*__first);
    	}
        };
     
      template<>
        struct _Destroy_aux<true>
        {
          template<typename _ForwardIterator>
            static void
            __destroy(_ForwardIterator, _ForwardIterator) { }
        };
     
      /**
       * Destroy a range of objects.  If the value_type of the object has
       * a trivial destructor, the compiler should optimize all of this
       * away, otherwise the objects' destructors must be invoked.
       */
      template<typename _ForwardIterator>
        inline void
        _Destroy(_ForwardIterator __first, _ForwardIterator __last)
        {
          typedef typename iterator_traits<_ForwardIterator>::value_type
                           _Value_type;
          std::_Destroy_aux<__has_trivial_destructor(_Value_type)>::
    	__destroy(__first, __last);
        }
     
      /**
       * Destroy a range of objects using the supplied allocator.  For
       * nondefault allocators we do not optimize away invocation of 
       * destroy() even if _Tp has a trivial destructor.
       */
     
      template <typename _Tp> class allocator;
     
      template<typename _ForwardIterator, typename _Allocator>
        void
        _Destroy(_ForwardIterator __first, _ForwardIterator __last,
    	     _Allocator& __alloc)
        {
          for (; __first != __last; ++__first)
    	__alloc.destroy(&*__first);
        }
     
      template<typename _ForwardIterator, typename _Tp>
        inline void
        _Destroy(_ForwardIterator __first, _ForwardIterator __last,
    	     allocator<_Tp>&)
        {
          _Destroy(__first, __last);
        }
     
    _GLIBCXX_END_NAMESPACE
     
    #endif /* _STL_CONSTRUCT_H */

  7. #7
    Membre régulier
    Femme Profil pro
    Inscrit en
    Octobre 2011
    Messages
    10
    Détails du profil
    Informations personnelles :
    Sexe : Femme

    Informations forums :
    Inscription : Octobre 2011
    Messages : 10
    Par défaut
    Voila :

    Appel.cpp
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
     
    #include "Appel.h"
    #include "function.h"
    #include <map> //tableau associatif
     
    #include <algorithm>
    using namespace std;
     
    Appel::Appel : m_numAppelant(0) ,m_numDestination(0) ,m_date(0) ,m_duree(0) ,m_type("local") ,m_numTransfer(0) ,m_cos(0) ,m_terminal(0) ,m_cosExist("false") ,m_transferExist("false")
    {
       //ctor par defaut
    }
     
    Appel::Appel (unsigned int numAppelant,unsigned int numDestination,time_t dateAppel,unsigned int duree,unsigned int transfert,unsigned int cos,unsigned int terminal): m_numAppelant(0) ,m_numDestination(0) ,m_date(0) ,m_duree(0) ,m_numTransfer(0) ,m_cos(0) ,m_terminal(0)
        //ctor utilise par le programme normalement
    {
     
        //Determination du type de l'appel
        string arrStr[3] = {"local", "regional", "international"};
        do
        {
            for (string* p = &arrStr[0]; p != &arrStr[3]; ++p)
            {
              string listInd;
              //Recuperation des indicatifs dans le fichier de configuration
              listInd=getConfig ("INDICATIFS",*p,fichierConfiguration);
     
              //separation des differents indicatifs
              vector<string> listCodechar;
              listCodechar=extractSbstr(listInd,separateur);
     
              //Insertion du resultat dans un tableau associatif
              map <string, vector> tableauIndicatif;
              tableauIndicatif[*p]=listCodechar;
            };
     
        }while (!tableauIndicatif);
     
        //on convertit le numero de destination en chaine de caracteres pour pouvoir faire une comparaison avec l'indicatif
        string destination=convertIntString(m_numDestination);
     
        for (string* p = &arrStr[0]; p != &arrStr[3]; ++p)
        {
              listCodechar=tableauIndicatif[*p];//on recupere les indicatifs de chaque type d'appel
              for (int i = 0 ; i < tableauIndicatif.size() ; ++i)
              {
                int taille=listCodechar[i].length;//on determine la taille de l'indicatif
                if (tableauIndicatif==destination.sbstr(0,taille)) m_type=*p;//si les premiers chiffres de la destination alors le type de l'appel est connu.
              };
        };
     
        //Valeur de cosExist est "true" si l'appel a ete fait avec un cos
        if (cos==0) m_cosExist("false") else m_cosExist("true");
     
        //valeur de transferExist est "true" si l'appel a ete transfere
        if (transfert==0) m_transferExist("false") else m_transferExist("true");
    }
     
    Appel::~Appel()
    {
        //dtor
    }
     
    void Appel::enregistrerDB () const
    {
        MYSQL *mysql=NULL;
        if(mysqlconnect(DB)==0)
        {
            mysqlsetcall(mysql);
            mysql_close(&mysql);
            return 0;
        }
        else return 1;
    }
     
    //enregistre un appel dans la base de données
    int mysqlsetcall()
    {
        mysql_query(&mysql,"INSERT INTO callid VALUES(' ',m_dateAppel.day,m_dateAppel.moment,m_duree,m_numTransfer,m_numDestination,m_cos,m_transferExist,m_cosExist,m_terminal,m_numAppelant)");
        mysql_query(&mysql,"INSERT INTO destination VALUES(m_numDestination,m_type)");
        return 0;
    }
     
    //Extraire des sous-chaines delimites par des sperateurs d'une chaine et les mets dans un tableau dynamique
    vector <string> extractSbstr(string chaine,char charSeparateur)
    {
        string mot;
        vector <string> tableauMots;
        while ( std::getline( iss, mot, charSeparateur ) )
        {
            tableauMots.pushback(mot);
            i++;
        };
        return (tableauMots);
    }
    Appel.h

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
     
     
    #ifndef APPEL_H
    #define APPEL_H
     
    #include <string> //manipuler des chaines de caracteres
    #include <fstream>
    #include <vector>
     
    class Appel
    {
        public:
            Appel (); //Constructeur par defaut
            //Un appel a ete passe. L'utilisateur a utilise son mot de passe et l'appel n'a pas été transféré.
            Appel (unsigned int numAppelant,unsigned int numDestination,time_t dateAppel,unsigned int duree,unsigned int transfert,unsigned int cos,unsigned int terminal);
            ~Appel();//efface les parametres alloues dynamiquement de appel de la memoire
            int enregistrerDB ();//enregistrer l'appel dans mySQL
            std::vector <std::string> extractSbstr(std::string chaine,char charSeparateur);
     
     
        private:
            unsigned int m_numAppelant; //2octets
            unsigned int m_numDestination;//+de 4octets
            DATE m_dateAppel;//objet date
            unsigned int m_duree;//en secondes
            std::string m_type;
            unsigned int m_numTransfer;
            unsigned int m_cos;
            unsigned int m_terminal;//terminal ID
            bool m_cosExist;//vrai si l'utilisateur utilise son mot de passe
            bool m_transferExist;//vrai si l'appel a ete transfere
    };
    #endif // APPEL_H

  8. #8
    Membre éprouvé
    Profil pro
    Inscrit en
    Novembre 2004
    Messages
    2 766
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2004
    Messages : 2 766
    Par défaut
    Bon, déjà, tu as oublié les parenthèses vides dans la définition de ton constructeur...

  9. #9
    Membre régulier
    Femme Profil pro
    Inscrit en
    Octobre 2011
    Messages
    10
    Détails du profil
    Informations personnelles :
    Sexe : Femme

    Informations forums :
    Inscription : Octobre 2011
    Messages : 10
    Par défaut
    t'as raison Oodini. Merci. .
    Mais hélas, ce n'est pas la cause de l'erreur. (je viens de corriger et de recompiler).

  10. #10
    Membre Expert

    Homme Profil pro
    Développeur informatique
    Inscrit en
    Septembre 2007
    Messages
    1 895
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 49
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Septembre 2007
    Messages : 1 895
    Par défaut
    C'est quoi cet #include <ing> quit traine ?

    C'est quoi ce fichier ing ?

    Tel que je lis l'erreur, si ce fichier contient du code c++ ou des entêtes C++, alors il est mal terminé (manque d'une parenthèse, ou manque d'un ;, quelque chose dans ce goût la).
    [FAQ des forums][FAQ Développement 2D, 3D et Jeux][Si vous ne savez pas ou vous en êtes...]
    Essayez d'écrire clairement (c'est à dire avec des mots français complets). SMS est votre ennemi.
    Evitez les arguments inutiles - DirectMachin vs. OpenTruc ou G++ vs. Café. C'est dépassé tout ça.
    Et si vous êtes sages, vous aurez peut être vous aussi la chance de passer à la télé. Ou pas.

    Ce site contient un forum d'entraide gratuit. Il ne s'use que si l'on ne s'en sert pas.

  11. #11
    Membre éprouvé
    Profil pro
    Inscrit en
    Novembre 2004
    Messages
    2 766
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2004
    Messages : 2 766
    Par défaut
    Citation Envoyé par phapha2011 Voir le message
    t'as raison Oodini. Merci. .
    Mais hélas, ce n'est pas la cause de l'erreur. (je viens de corriger et de recompiler).
    Ça, je m'y attendais.

    Et si tu compiles Appel.cpp, ça donne quoi ?
    La même chose, je suppose ?

    Tu peux essayer de commenter comme un goret pour circonscrire l'erreur.

  12. #12
    Membre régulier
    Femme Profil pro
    Inscrit en
    Octobre 2011
    Messages
    10
    Détails du profil
    Informations personnelles :
    Sexe : Femme

    Informations forums :
    Inscription : Octobre 2011
    Messages : 10
    Par défaut
    Citation Envoyé par Emmanuel Deloget Voir le message
    C'est quoi cet #include <ing> quit traine ?

    C'est quoi ce fichier ing ?

    Tel que je lis l'erreur, si ce fichier contient du code c++ ou des entêtes C++, alors il est mal terminé (manque d'une parenthèse, ou manque d'un ;, quelque chose dans ce goût la).
    Ben, je sais plus trop ce pour quoi je l'avais mis. mais je viens de le commenter. j'essaie de recpmpiler. Meme erreur.

  13. #13
    Membre régulier
    Femme Profil pro
    Inscrit en
    Octobre 2011
    Messages
    10
    Détails du profil
    Informations personnelles :
    Sexe : Femme

    Informations forums :
    Inscription : Octobre 2011
    Messages : 10
    Par défaut
    Citation Envoyé par oodini Voir le message
    Ça, je m'y attendais.

    Et si tu compiles Appel.cpp, ça donne quoi ?
    La même chose, je suppose ?

    Tu peux essayer de commenter comme un goret pour circonscrire l'erreur.
    Meme erreur quand j'essaie de compiler Appel.cpp.
    Est-il possible que l'erreur soit due a une classe que j'ai inséré dans mon main? la classe Cserial qui permet la communication avec le port serie. Je l'ai téléchargée sur le net. Est-il possible que ca provoque une erreur dans une autre classe?

  14. #14
    Membre régulier
    Femme Profil pro
    Inscrit en
    Octobre 2011
    Messages
    10
    Détails du profil
    Informations personnelles :
    Sexe : Femme

    Informations forums :
    Inscription : Octobre 2011
    Messages : 10
    Par défaut
    J'ai aussi remarqué que quand je commentais la ligne

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    std::string getConfig(std::string section,std::string cle,std::string nomFichier);//LIGNE OU IL Y A L'ERREUR(du moins je crois)
    l'erreur disparaissait. Par contre dans ce cas, j'ai error :'getConfig' was not declared in this scope. ce qui est normal vu que j'appelle la fonction getConfig dans le fichier main.

  15. #15
    Membre éprouvé
    Profil pro
    Inscrit en
    Novembre 2004
    Messages
    2 766
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2004
    Messages : 2 766
    Par défaut
    Et si tu décommentes, mais qu'en revanche, dans sa définition, tu commentes l'appel à GetPrivateProfileStringA() ?

  16. #16
    Membre régulier
    Femme Profil pro
    Inscrit en
    Octobre 2011
    Messages
    10
    Détails du profil
    Informations personnelles :
    Sexe : Femme

    Informations forums :
    Inscription : Octobre 2011
    Messages : 10
    Par défaut
    Citation Envoyé par oodini Voir le message
    Et si tu décommentes, mais qu'en revanche, dans sa définition, tu commentes l'appel à GetPrivateProfileStringA() ?
    Dans ce cas, l'erreur initiale revient.

  17. #17
    Membre éprouvé
    Profil pro
    Inscrit en
    Novembre 2004
    Messages
    2 766
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2004
    Messages : 2 766
    Par défaut
    Enlève, dans le cpp, tous les .h, sauf celui qui déclare ta fonction.

Discussions similaires

  1. erreur : expected unqualified-id before '+' token
    Par issmaz dans le forum Débuter
    Réponses: 3
    Dernier message: 27/10/2011, 10h21
  2. expected unqualified-id before ‘namespace’
    Par ikuzar dans le forum Débuter
    Réponses: 1
    Dernier message: 16/05/2009, 12h55
  3. erreur: expected unqualified-id
    Par Le Barde dans le forum C++
    Réponses: 3
    Dernier message: 11/07/2007, 15h50
  4. Réponses: 2
    Dernier message: 03/06/2006, 22h33
  5. Réponses: 5
    Dernier message: 05/05/2006, 18h07

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo