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

CORBA Discussion :

valuetype inconnue par le compilateur


Sujet :

CORBA

  1. #1
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Mai 2010
    Messages
    51
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2010
    Messages : 51
    Points : 26
    Points
    26
    Par défaut valuetype inconnue par le compilateur
    bonjour,
    j'ai une erreur dans l'importation d'un value type dans un autre:
    voila mon code:
    module intervenant {
    valuetype Intervenant {

    private long id;
    private string nom;
    private string prenom;
    private string mobile;


    long getId();
    string getNom();
    string getPrenom();
    string getMobile();

    void setId(in long id);
    void setNom(in string nom);
    void setPrenom(in string prenom);
    void setMobile(in string mobile);


    };
    };


    et aussi j'ai

    # include "intervenant.idl"
    module intervention {
    valuetype Intervention {

    private long id;
    private string datedebut;
    private string datefin;
    private string status;
    private string nom;
    private string prenom;
    private string adresse;
    private intervenant :: Intervenant intervenant;


    long getId();
    string getDatedebut();
    string getDateFin();
    string getStatus();
    string getNom();
    string getPrenom();
    string getAdresse();
    intervenant :: Intervenant getIntervenant();


    void setId(in double id);
    void setDatedebut(in string datedebut);
    void setDatefin(in string datefin);
    void setStatus(in string status);
    void setNom(in string nom);
    void setPrenom(in string prenom);
    void setAdresse(in string adresse);
    void setIntervenant(in intervenant :: Intervenant intervenant);

    };

    };


    et quand je compile avec idlj, j'ai l'erreur suivante:

    intervenant/Intervenant is unudeclared type, malgé comme vous voyez, j'ai fais un "include" !! et aussi j'ai compilé intervenant avant intervention !!

    merci

  2. #2
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Mai 2010
    Messages
    51
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2010
    Messages : 51
    Points : 26
    Points
    26
    Par défaut
    voila j'ai trouvé la faute :
    l'espace après le "#" été le problème !!
    mais j'ai rencontré une autre problème qui est:
    comment faire pour q'un valuetype utilise un autre et celui ci utilise le premier (utilisation croisé)

    exemple

    valuetype A{

    B b;
    long element;
    };


    et
    valuetype B{
    A a;
    string element;

    };


    car j'ai fais ça et j'ai obtenu une erreur de compilation !!
    Exception in thread "main" java.lang.OutOfMemoryError.

  3. #3
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Mai 2010
    Messages
    51
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2010
    Messages : 51
    Points : 26
    Points
    26
    Par défaut
    aide ?

  4. #4
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Mai 2010
    Messages
    51
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2010
    Messages : 51
    Points : 26
    Points
    26
    Par défaut
    j'ai trouvé la solution :
    il faut just les declarer avant de les definir !!

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [Turbo Pascal] Unité Graph non trouvée par le compilateur
    Par Napocalyx dans le forum Turbo Pascal
    Réponses: 4
    Dernier message: 04/04/2008, 23h16
  2. Erreur retournée par le compilateur
    Par robotor dans le forum Simulink
    Réponses: 1
    Dernier message: 27/03/2008, 10h14
  3. TFormDesigner inconnu par Turbo Delphi Pro 2006 pour Windows
    Par Patrick25300 dans le forum Delphi
    Réponses: 3
    Dernier message: 15/03/2007, 19h45
  4. Réponses: 14
    Dernier message: 03/07/2006, 16h55
  5. Réponses: 5
    Dernier message: 16/06/2006, 23h05

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