0

Je reçois des erreurs très étranges et je ne suis pas capable de comprendre ce que ces erreurs signifient quand construire mon projet en studio visuel il me donne les erreurs suivantes quelqu'un peut-il me dire ce que ces erreurs signifient qu'il y a quelques problèmes de configuration je fais la programmation de douille et la programmation de réseau.Problème de bibliothèque dans le projet

Voici le tas d'erreur de votre aide weill très appréciée ....

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(E:\Study\FWIF\demola\ext-libs\libcommoncpp2-1.6.0\w32\Debug\ccgnu2.dll) does not match the Linker's OutputFile property value (E:\Study\FWIF\demola\ext-libs\libcommoncpp2-1.6.0\w32\Debug\CapeCommon14.dll). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile). 
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(992,5): warning MSB8012: TargetName(ccgnu2) does not match the Linker's OutputFile property value (CapeCommon14). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile). 
1>  Creating library E:\Study\FWIF\demola\ext-libs\libcommoncpp2-1.6.0\w32\Debug\CapeCommon14.lib and object E:\Study\FWIF\demola\ext-libs\libcommoncpp2-1.6.0\w32\Debug\CapeCommon14.exp 
1>socket.obj : error LNK2019: unresolved external symbol "public: bool __thiscall ost::IPV4Cidr::isMember(struct sockaddr const *)const " ([email protected]@[email protected]@[email protected]@@Z) referenced in function "public: bool __thiscall ost::IPV4Cidr::operator==(struct sockaddr const *)const " ([email protected]@@[email protected]@@Z) 
1>in6addr.obj : error LNK2001: unresolved external symbol "public: bool __thiscall ost::IPV4Cidr::isMember(struct sockaddr const *)const " ([email protected]@[email protected]@[email protected]@@Z) 
1>inaddr.obj : error LNK2001: unresolved external symbol "public: bool __thiscall ost::IPV4Cidr::isMember(struct sockaddr const *)const " ([email protected]@[email protected]@[email protected]@@Z) 
1>peer.obj : error LNK2001: unresolved external symbol "public: bool __thiscall ost::IPV4Cidr::isMember(struct sockaddr const *)const " ([email protected]@[email protected]@[email protected]@@Z) 
1>simplesocket.obj : error LNK2001: unresolved external symbol "public: bool __thiscall ost::IPV4Cidr::isMember(struct sockaddr const *)const " ([email protected]@[email protected]@[email protected]@@Z) 
1>socket.obj : error LNK2019: unresolved external symbol "public: bool __thiscall ost::IPV4Cidr::isMember(struct in_addr const &)const " ([email protected]@[email protected]@[email protected]@@Z) referenced in function "public: bool __thiscall ost::IPV4Cidr::operator==(struct in_addr const &)const " ([email protected]@@[email protected]@@Z) 
1>in6addr.obj : error LNK2001: unresolved external symbol "public: bool __thiscall ost::IPV4Cidr::isMember(struct in_addr const &)const " ([email protected]@[email protected]@[email protected]@@Z) 
1>inaddr.obj : error LNK2001: unresolved external symbol "public: bool __thiscall ost::IPV4Cidr::isMember(struct in_addr const &)const " ([email protected]@[email protected]@[email protected]@@Z) 
1>peer.obj : error LNK2001: unresolved external symbol "public: bool __thiscall ost::IPV4Cidr::isMember(struct in_addr const &)const " ([email protected]@[email protected]@[email protected]@@Z) 
1>simplesocket.obj : error LNK2001: unresolved external symbol "public: bool __thiscall ost::IPV4Cidr::isMember(struct in_addr const &)const " ([email protected]@[email protected]@[email protected]@@Z) 
1>E:\Study\FWIF\demola\ext-libs\libcommoncpp2-1.6.0\w32\Debug\CapeCommon14.dll : fatal error LNK1120: 2 unresolved externals 
2>------ Build started: Project: buffer, Configuration: Debug Win32 ------ 
2> buffer.cpp 
2>e:\study\fwif\demola\ext-libs\libcommoncpp2-1.6.0\demo\buffer.cpp(41): fatal error C1083: Cannot open include file: 'cc++/buffer.h': No such file or directory 
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ========== 
+0

J'ai formaté les erreurs de construction en sélectionnant et en appuyant sur l'icône de code (101010). Idem pour le code inclus dans les questions. Plus facile à lire maintenant. –

Répondre

0

Pour les erreurs dans le projet 1, il semble que vous devez ajouter une bibliothèque à la construction pour résoudre la fonction appelez le ost::IPV4Cidr::isMember(struct sockaddr const *)const. Vous compilez peut-être avec les mauvaises conventions d'appel pour une bibliothèque que vous avez déjà incluse.

Pour l'erreur de compilation dans le projet buffer, vous devez ajouter le chemin d'inclusion pour ce fichier cc++/buffer.h au projet.

Questions connexes