0

Ich bekomme sehr seltsame Fehler und ich bin nicht in der Lage zu verstehen, was diese Fehler tatsächlich bedeuten, wenn mein Projekt in Visual Studio bauen gibt es mir die folgenden Fehler kann mir jemand sagt, was eigentlich diese Fehler bedeutet, ich obwohl Dass es einige Konfigurationsprobleme gibt, mache ich Socket-Programmierung und Netzwerkprogrammierung.Bibliothek Problem im Projekt

Hier sind die paar Fehler Ihre Hilfe weill sehr geschätzt ....

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

Ich formatierte die Erstellungsfehler, indem ich das Code-Symbol (101010) anwähle und anklicke. Gleiches gilt für den in den Fragen enthaltenen Code. Einfacher zu lesen. –

Antwort

0

Für die Fehler in Projekt 1, es sieht aus wie Sie eine Bibliothek zu dem Build hinzufügen müssen, um die Funktion zu lösen Anruf ost::IPV4Cidr::isMember(struct sockaddr const *)const. Möglicherweise kompilieren Sie mit den falschen Aufrufkonventionen für eine Bibliothek, die Sie bereits enthalten.

Für den Kompilierfehler im Projekt buffer müssen Sie den Include-Pfad für diese Datei cc++/buffer.h dem Projekt hinzufügen.

Verwandte Themen