C++ / Dokumentationssuche
Den Fehler finden. Den nächsten Schritt finden.
Suchen Sie nach Diagnosecode, kopierter Meldung oder Symptom. Filtern Sie nach Inhalt und Projektsystem.
47 Ergebnisse
Dokumentation durchsuchen →LNK2038: Eine Datei verwendet eine eigene Einstellung statt der Projekteinstellung.
A .cpp file can have its own Runtime Library setting. Remove the override in its properties so it inherits the project's.
LNK2038: Projekte nutzen unterschiedliche Laufzeitbibliotheken.
Set the same C/C++ > Code Generation > Runtime Library in every project of the program: /MD everywhere, or /MT everywhere, with /MDd or /MTd in Debug.
LNK4098: /NODEFAULTLIB verbirgt den Konflikt.
Das Ignorieren der Standardbibliothek unterdrückt die Warnung, ohne die Laufzeiten kompatibel zu machen: Verwenden Sie es nur für eine Bibliothek, von der Sie wissen, dass sie nicht benötigt wird.
LNK4098: Eine Release-Bibliothek wird in Debug gelinkt.
Linken Sie in der Debug-Konfiguration den Debug-Build der Bibliothek.
LNK4098: Eine Bibliothek verwendet eine andere Laufzeitbibliothek.
Build all projects and libraries with the same C/C++ > Code Generation > Runtime Library : /MD with /MDd in Debug, or /MT with /MTd . Use the library build that matches.
vcpkg-Bibliotheken in Visual Studio verwenden: Eine Bibliothek hinzufügen
Führen Sie in der Developer PowerShell im Projektordner vcpkg new --application aus. Dadurch werden vcpkg.json und vcpkg-configuration.json erstellt. Fügen Sie die Bibliotheken hinzu: vcpkg add port fmt . Setzen Sie in den…
vcpkg-Bibliotheken in Visual Studio verwenden: Das Triplet wählen
Das Triplet bestimmt, wie die Bibliotheken erstellt werden. Es muss zur Laufzeitbibliothek Ihres Projekts passen, sonst schlägt das Linken mit LNK2038 oder LNK4098 fehl: x64-windows : DLLs mit der dynamischen Laufzeit ( /MD ), die…