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 :

Probleme edition de lien Code blocks CGI


Sujet :

C++

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Profil pro
    Inscrit en
    Décembre 2006
    Messages
    73
    Détails du profil
    Informations personnelles :
    Âge : 36
    Localisation : France

    Informations forums :
    Inscription : Décembre 2006
    Messages : 73
    Par défaut Probleme edition de lien Code blocks CGI
    Bonjour à tous, apres quelque prise de tête et arrachage de cheveu je me tourne déséspérement vers vous . Je m'explique j'ai un projet a rendre et celui-ci doit etre fait en cgi, j'ai commencer sous linux tout marche bien jusqu'au moment d'intégrer de l'occi (Base de donnée) impossible d'installer oracle. Je me suis donc tourner vers windows, j'ai installer code blocks, visual C++, oracle et apache jusque la tout s'est bien passé. J'ai voulu tester si code block compilait bien les fichiers j'ai donc pris un projet que le prof nous avait passé et la erreur lors de l'edition des liens .
    Voici l'erreur:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    error LNK2019: unresolved external symbol
    Si quelqu'un pouvait m'aider. merci d'avance

  2. #2
    Expert éminent
    Avatar de Médinoc
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Septembre 2005
    Messages
    27 395
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 41
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Septembre 2005
    Messages : 27 395
    Par défaut
    L'erreur est absoluemnt incomplète, il manque au moins le nom du symbole.

    De plus, sans code ce n'est pas sûr qu'on puisse faire grand-chose...
    SVP, pas de questions techniques par MP. Surtout si je ne vous ai jamais parlé avant.

    "Aw, come on, who would be so stupid as to insert a cast to make an error go away without actually fixing the error?"
    Apparently everyone.
    -- Raymond Chen.
    Traduction obligatoire: "Oh, voyons, qui serait assez stupide pour mettre un cast pour faire disparaitre un message d'erreur sans vraiment corriger l'erreur?" - Apparemment, tout le monde. -- Raymond Chen.

  3. #3
    Membre confirmé
    Profil pro
    Inscrit en
    Décembre 2006
    Messages
    73
    Détails du profil
    Informations personnelles :
    Âge : 36
    Localisation : France

    Informations forums :
    Inscription : Décembre 2006
    Messages : 73
    Par défaut
    je pensais que sa venait de la configuration de mon code blocks mais je sais pas.
    Sinon pour mes erreurs les voici:

    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
     
    Switching to target: default
    Linking console executable: C:\Documents and Settings\Eguepin\Bureau\console.exe
    AdhererCgi.o : error LNK2019: unresolved external symbol "public: __thiscall cgicc::Cgicc::Cgicc(class cgicc::CgiInput *)" (??0Cgicc@cgicc@@QAE@PAVCgiInput@1@@Z) referenced in function "public: __thiscall AdhererCgi::AdhererCgi(void)" (??0AdhererCgi@@QAE@XZ)
    AdhererCgi.o : error LNK2019: unresolved external symbol "public: virtual __thiscall cgicc::HTTPHTMLHeader::~HTTPHTMLHeader(void)" (??1HTTPHTMLHeader@cgicc@@UAE@XZ) referenced in function "private: void __thiscall AdhererCgi::reponse_httpHeaders(class std::basic_ostream<char,struct std::char_traits<char> > &)" (?reponse_httpHeaders@AdhererCgi@@AAEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z)
    AdhererCgi.o : error LNK2019: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl cgicc::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,class cgicc::MStreamable const &)" (??6cgicc@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV12@ABVMStreamable@0@@Z) referenced in function "private: void __thiscall AdhererCgi::reponse_httpHeaders(class std::basic_ostream<char,struct std::char_traits<char> > &)" (?reponse_httpHeaders@AdhererCgi@@AAEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z)
    AdhererCgi.o : error LNK2019: unresolved external symbol "public: __thiscall cgicc::HTTPHTMLHeader::HTTPHTMLHeader(void)" (??0HTTPHTMLHeader@cgicc@@QAE@XZ) referenced in function "private: void __thiscall AdhererCgi::reponse_httpHeaders(class std::basic_ostream<char,struct std::char_traits<char> > &)" (?reponse_httpHeaders@AdhererCgi@@AAEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z)
    AdhererCgi.o : error LNK2019: unresolved external symbol "public: virtual __thiscall cgicc::HTMLDoctype::~HTMLDoctype(void)" (??1HTMLDoctype@cgicc@@UAE@XZ) referenced in function "private: void __thiscall AdhererCgi::reponse_body(class std::basic_ostream<char,struct std::char_traits<char> > &)" (?reponse_body@AdhererCgi@@AAEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z)
    AdhererCgi.o : error LNK2019: unresolved external symbol "public: __thiscall cgicc::HTMLDoctype::HTMLDoctype(enum cgicc::HTMLDoctype::EDocumentType)" (??0HTMLDoctype@cgicc@@QAE@W4EDocumentType@01@@Z) referenced in function "private: void __thiscall AdhererCgi::reponse_body(class std::basic_ostream<char,struct std::char_traits<char> > &)" (?reponse_body@AdhererCgi@@AAEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z)
    AdhererCgi.o : error LNK2019: unresolved external symbol "public: class cgicc::HTMLElement & __thiscall cgicc::HTMLElement::set(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?set@HTMLElement@cgicc@@QAEAAV12@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z) referenced in function "private: void __thiscall AdhererCgi::reponse_body(class std::basic_ostream<char,struct std::char_traits<char> > &)" (?reponse_body@AdhererCgi@@AAEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z)
    Adherent.o : error LNK2019: unresolved external symbol "public: class cgicc::HTMLElement & __thiscall cgicc::HTMLElement::set(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?set@HTMLElement@cgicc@@QAEAAV12@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z) referenced in function "public: __thiscall Adherent::Adherent(class cgicc::Cgicc const &)" (??0Adherent@@QAE@ABVCgicc@cgicc@@@Z)
    AdhererCgi.o : error LNK2019: unresolved external symbol "public: class std::vector<class cgicc::FormEntry,class std::allocator<class cgicc::FormEntry> >::const_iterator __thiscall cgicc::Cgicc::getElement(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (?getElement@Cgicc@cgicc@@QBE?AVconst_iterator@?$vector@VFormEntry@cgicc@@V?$allocator@VFormEntry@cgicc@@@std@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@5@@Z) referenced in function "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl AdhererCgi::etatActuel(class cgicc::Cgicc const &)" (?etatActuel@AdhererCgi@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVCgicc@cgicc@@@Z)
    AdhererCgi.o : error LNK2001: unresolved external symbol "public: virtual void __thiscall cgicc::HTMLElement::render(class std::basic_ostream<char,struct std::char_traits<char> > &)const " (?render@HTMLElement@cgicc@@UBEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z)
    AttAdherent.o : error LNK2001: unresolved external symbol "public: virtual void __thiscall cgicc::HTMLElement::render(class std::basic_ostream<char,struct std::char_traits<char> > &)const " (?render@HTMLElement@cgicc@@UBEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z)
    mainAdhererCgi.o : error LNK2019: unresolved external symbol "public: virtual void __thiscall cgicc::HTMLElement::render(class std::basic_ostream<char,struct std::char_traits<char> > &)const " (?render@HTMLElement@cgicc@@UBEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z) referenced in function "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ)
    Adherent.o : error LNK2001: unresolved external symbol "public: virtual void __thiscall cgicc::HTMLElement::render(class std::basic_ostream<char,struct std::char_traits<char> > &)const " (?render@HTMLElement@cgicc@@UBEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z)
    AdhererCgi.o : error LNK2019: unresolved external symbol "protected: __thiscall cgicc::HTMLElement::HTMLElement(class cgicc::HTMLAttributeList const *,class cgicc::HTMLElement const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const *,enum cgicc::HTMLElement::EElementType)" (??0HTMLElement@cgicc@@IAE@PBVHTMLAttributeList@1@PBV01@PBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@W4EElementType@01@@Z) referenced in function "public: __thiscall cgicc::HTMLBooleanElement<class cgicc::htmlTag>::HTMLBooleanElement<class cgicc::htmlTag>(void)" (??0?$HTMLBooleanElement@VhtmlTag@cgicc@@@cgicc@@QAE@XZ)
    AttAdherent.o : error LNK2001: unresolved external symbol "protected: __thiscall cgicc::HTMLElement::HTMLElement(class cgicc::HTMLAttributeList const *,class cgicc::HTMLElement const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const *,enum cgicc::HTMLElement::EElementType)" (??0HTMLElement@cgicc@@IAE@PBVHTMLAttributeList@1@PBV01@PBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@W4EElementType@01@@Z)
    Adherent.o : error LNK2001: unresolved external symbol "protected: __thiscall cgicc::HTMLElement::HTMLElement(class cgicc::HTMLAttributeList const *,class cgicc::HTMLElement const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const *,enum cgicc::HTMLElement::EElementType)" (??0HTMLElement@cgicc@@IAE@PBVHTMLAttributeList@1@PBV01@PBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@W4EElementType@01@@Z)
    AdhererCgi.o : error LNK2019: unresolved external symbol "public: virtual __thiscall cgicc::HTMLElement::~HTMLElement(void)" (??1HTMLElement@cgicc@@UAE@XZ) referenced in function "public: virtual __thiscall cgicc::HTMLBooleanElement<class cgicc::htmlTag>::~HTMLBooleanElement<class cgicc::htmlTag>(void)" (??1?$HTMLBooleanElement@VhtmlTag@cgicc@@@cgicc@@UAE@XZ)
    AttAdherent.o : error LNK2019: unresolved external symbol "public: virtual __thiscall cgicc::HTMLElement::~HTMLElement(void)" (??1HTMLElement@cgicc@@UAE@XZ) referenced in function "public: void __thiscall AttAdherent::reponse_AttAdherent(void)" (?reponse_AttAdherent@AttAdherent@@QAEXXZ)
    mainAdhererCgi.o : error LNK2001: unresolved external symbol "public: virtual __thiscall cgicc::HTMLElement::~HTMLElement(void)" (??1HTMLElement@cgicc@@UAE@XZ)
    Adherent.o : error LNK2019: unresolved external symbol "public: virtual __thiscall cgicc::HTMLElement::~HTMLElement(void)" (??1HTMLElement@cgicc@@UAE@XZ) referenced in function "public: static char const * __cdecl cgicc::formTag::getName(void)" (?getName@formTag@cgicc@@SAPBDXZ)
    AdhererCgi.o : error LNK2019: unresolved external symbol "public: __thiscall cgicc::HTMLElement::HTMLElement(class cgicc::HTMLElement const &)" (??0HTMLElement@cgicc@@QAE@ABV01@@Z) referenced in function "public: __thiscall cgicc::HTMLBooleanElement<class cgicc::htmlTag>::HTMLBooleanElement<class cgicc::htmlTag>(class cgicc::HTMLBooleanElement<class cgicc::htmlTag> const &)" (??0?$HTMLBooleanElement@VhtmlTag@cgicc@@@cgicc@@QAE@ABV01@@Z)
    AttAdherent.o : error LNK2001: unresolved external symbol "public: __thiscall cgicc::HTMLElement::HTMLElement(class cgicc::HTMLElement const &)" (??0HTMLElement@cgicc@@QAE@ABV01@@Z)
    mainAdhererCgi.o : error LNK2001: unresolved external symbol "public: __thiscall cgicc::HTMLElement::HTMLElement(class cgicc::HTMLElement const &)" (??0HTMLElement@cgicc@@QAE@ABV01@@Z)
    Adherent.o : error LNK2001: unresolved external symbol "public: __thiscall cgicc::HTMLElement::HTMLElement(class cgicc::HTMLElement const &)" (??0HTMLElement@cgicc@@QAE@ABV01@@Z)
    AttAdherent.o : error LNK2019: unresolved external symbol "public: class cgicc::HTMLElement & __thiscall cgicc::HTMLElement::add(class cgicc::HTMLElement const &)" (?add@HTMLElement@cgicc@@QAEAAV12@ABV12@@Z) referenced in function "public: void __thiscall AttAdherent::reponse_AttAdherent(void)" (?reponse_AttAdherent@AttAdherent@@QAEXXZ)
    Adherent.o : error LNK2001: unresolved external symbol "public: class cgicc::HTMLElement & __thiscall cgicc::HTMLElement::add(class cgicc::HTMLElement const &)" (?add@HTMLElement@cgicc@@QAEAAV12@ABV12@@Z)
    mainAdhererCgi.o : error LNK2019: unresolved external symbol "public: __thiscall cgicc::Cgicc::~Cgicc(void)" (??1Cgicc@cgicc@@QAE@XZ) referenced in function "public: __thiscall AdhererCgi::~AdhererCgi(void)" (??1AdhererCgi@@QAE@XZ)
    C:\Documents and Settings\Eguepin\Bureau\console.exe : fatal error LNK1120: 14 unresolved externals
    Process terminated with status 1 (0 minutes, 0 seconds)
    28 errors, 0 warnings
    Et le code il marche normalement car je l'ai deja compiler et executer sur les ordinateur de mon école mais si vous voulez que je le mette je le mettrai. Merci

  4. #4
    Membre confirmé
    Inscrit en
    Janvier 2008
    Messages
    38
    Détails du profil
    Informations forums :
    Inscription : Janvier 2008
    Messages : 38
    Par défaut
    C'est une erreur d'edition de liens, le linker ne trouve pas les fonction de Cgicc,
    peut etre tu a oublié d'ajouter la bibliotheque Cgicc dans
    code blocks: project build options/linker settings ...

  5. #5
    Membre confirmé
    Profil pro
    Inscrit en
    Décembre 2006
    Messages
    73
    Détails du profil
    Informations personnelles :
    Âge : 36
    Localisation : France

    Informations forums :
    Inscription : Décembre 2006
    Messages : 73
    Par défaut
    ba j'ai fait comme tu ma dit j'ai ajouter la libcgicc.a dans le linker mais toujours les même erreurs

  6. #6
    Membre confirmé
    Profil pro
    Inscrit en
    Décembre 2006
    Messages
    73
    Détails du profil
    Informations personnelles :
    Âge : 36
    Localisation : France

    Informations forums :
    Inscription : Décembre 2006
    Messages : 73
    Par défaut
    je ne sais pas si cela peut aider mais voici le Makefile qu'il génère pour compiler et editer les liens

    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
     
    ###############################################################################
    # Makefile automatically generated by Code::Blocks IDE                        #
    ###############################################################################
     
    # Project:          Console application
    # Project filename: C:\Documents and Settings\Bureau\console.cbp
    # Compiler used:    Microsoft Visual C++ Toolkit 2003
     
    ### Variables used in this Makefile
    default_CC=cl.exe
    default_CPP=cl.exe
    default_LD=link.exe
    default_LIB=link.exe
    default_RESCOMP=rc.exe
     
    ### Compiler/linker options
    default_GLOBAL_CFLAGS=
    default_PROJECT_CFLAGS=
    default_GLOBAL_LDFLAGS= Cgicc
    default_PROJECT_LDFLAGS=
    default_GLOBAL_INCS= /IC:/Program\ Files/Microsoft\ Visual\ C++\ Toolkit\ 2003/include
    default_PROJECT_INCS=
    default_GLOBAL_LIBDIRS= /LIBPATH:C:/Program\ Files/Microsoft\ Visual\ C++\ Toolkit\ 2003/lib
    default_PROJECT_LIBDIRS=
    default_GLOBAL_LIBS= C:\Program Files\Microsoft Visual C++ Toolkit 2003\lib\libcgicc.a
    default_PROJECT_LIBS=
     
    ### Targets compiler flags
    default_CFLAGS= $(default_PROJECT_CFLAGS) $(default_GLOBAL_CFLAGS)
     
    ### Targets linker flags
    default_LDFLAGS= $(default_PROJECT_LDFLAGS) $(default_GLOBAL_LDFLAGS)
     
    ### Targets include directories
    default_INCS= $(default_PROJECT_INCS) $(default_GLOBAL_INCS)
     
    ### Targets library directories
    default_LIBDIRS= $(default_PROJECT_LIBDIRS) $(default_GLOBAL_LIBDIRS)
     
    ### Targets libraries
    default_LIBS= $(default_PROJECT_LIBS) $(default_GLOBAL_LIBS)
     
    ###############################################################################
    #         You shouldn't need to modify anything beyond this point             #
    ###############################################################################
     
    ### Resources used in this Makefile
    default_RESOURCE=
     
    ### Objects used in this Makefile
    default_OBJS=.objs/AdhererCgi.o .objs/AttAdherent.o .objs/mainAdhererCgi.o .objs/Adherent.o 
    default_LINKOBJS=$(default_OBJS)
     
    ### The targets of this project
    default_BIN=C:/Documents\ and\ Settings/Bureau/console.exe
     
    .PHONY: all all-before all-custom all-after clean clean-custom distclean distclean-custom depend_default default-before default-after 
     
    all: all-before default all-after
     
     
    dist:
    	@zip console.cbp.zip console.cbp Makefile clubBricolage\Adherent.cpp clubBricolage\Adherent.hpp clubBricolage\AdhererCgi.cpp clubBricolage\AdhererCgi.hpp clubBricolage\AttAdherent.cpp clubBricolage\AttAdherent.hpp clubBricolage\mainAdhererCgi.cpp 
     
    clean_default:
    	@$(RM) $(default_BIN) $(default_OBJS) $(default_RESOURCE) 
     
    distclean_default:
    	@$(RM) $(default_BIN) $(default_OBJS) $(default_DEPS) $(default_RESOURCE) 
     
    clean: clean_default 
     
    distclean: distclean_default 
     
    depend:
     
    default_DIRS:
    	-@if not exist ".objs\." mkdir ".objs"
    	-@if not exist ".objs\clubBricolage\." mkdir ".objs\clubBricolage"
     
    default: depend_default default_DIRS default-before $(default_BIN) default-after
     
    $(default_BIN): $(default_LINKOBJS) $(default_RESOURCE)
    	@$(default_LD) /nologo $(default_LIBDIRS) /out:$(default_BIN) $(default_LIBS) $(default_LINKOBJS) $(default_RESOURCE) $(default_LDFLAGS)
     
     
    .objs/AdhererCgi.o: clubBricolage\AdhererCgi.cpp
    	@$(default_CPP) /nologo $(default_CFLAGS) $(default_INCS) /c clubBricolage/AdhererCgi.cpp /Fo.objs/AdhererCgi.o
     
    .objs/AttAdherent.o: clubBricolage\AttAdherent.cpp
    	@$(default_CPP) /nologo $(default_CFLAGS) $(default_INCS) /c clubBricolage/AttAdherent.cpp /Fo.objs/AttAdherent.o
     
    .objs/mainAdhererCgi.o: clubBricolage\mainAdhererCgi.cpp
    	@$(default_CPP) /nologo $(default_CFLAGS) $(default_INCS) /c clubBricolage/mainAdhererCgi.cpp /Fo.objs/mainAdhererCgi.o
     
    .objs/Adherent.o: clubBricolage\Adherent.cpp
    	@$(default_CPP) /nologo $(default_CFLAGS) $(default_INCS) /c clubBricolage/Adherent.cpp /Fo.objs/Adherent.o

Discussions similaires

  1. Réponses: 16
    Dernier message: 20/02/2009, 14h03
  2. Probleme au démarrage de code::blocks sous Debian
    Par acryline dans le forum Applications et environnements graphiques
    Réponses: 1
    Dernier message: 19/01/2008, 17h25
  3. Probleme edition des liens OpenGL
    Par Mr_Glopinous dans le forum wxWidgets
    Réponses: 1
    Dernier message: 04/10/2007, 20h13
  4. probleme de débutant avec code blocks
    Par Arwel dans le forum Code::Blocks
    Réponses: 9
    Dernier message: 06/09/2007, 14h12
  5. probleme edition de liens
    Par peace_info dans le forum C++
    Réponses: 5
    Dernier message: 14/02/2007, 13h29

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