Setzen Sie eine Option, um dem Compiler mitzuteilen, statisch oder dynamisch die .lib zu binden, oder wie würden Sie prüfen, ob die .lib-Datei statisch an .exe gebunden ist?Statische und dynamische Bindung
Antwort
Führen Sie die Datei "depends.exe" mit dem Flag "/ Dependers" aus. Hier ist die Ausgabe für cl.exe mit depends.exe mit VS2010 auf WinXP.
dumpbin/HALT cl.exe
Dateityp: ausführbares Image
Bild hat folgende Abhängigkeiten:
ADVAPI32.dll
KERNEL32.dll
MSVCR100.dll
mspdb100.dll
Bild hat folgende Verzögerung Lastabhängigkeiten:
VERSION.dll
PSAPI.DLL
SHELL32.dll
Zeigt es statisch oder dynamisch verknüpfte DLLs? – user963241
@cpx: Ich nehme an, Sie meinen "statisch vs. dynamisch", ob es nur eine statische Bibliothek (.lib) ist, ohne dass eine DLL zur Laufzeit benötigt wird, und dynamisch bedeutet, dass Sie die entsprechende DLL benötigen? Wenn dies der Fall ist, lautet die Antwort: Jede Abhängigkeit der resultierenden ausführbaren Datei ist dynamisch, da jede statisch verknüpfte Bibliothek in Ihre Binärdatei selbst "eingebacken" wird. – Mephane
- 1. Statische Bindung und dynamische Bindung
- 2. Fall: statische Bindung? Dynamische Bindung?
- 3. In C++ heißt diese Methode statische Bindung oder dynamische Bindung?
- 4. Dynamische Scoping und statische Scoping
- 5. PHP Geschwisterklassen statische Bindung
- 6. Aurelia dynamische Bindung
- 7. KnockoutJS Dynamische CheckBox Bindung
- 8. Linking: Statische vs Dynamische
- 9. Statische vs dynamische sql
- 10. Dynamische und statische Scoping-Programm Unterschiede
- 11. Grundflächen statische und dynamische Spalten in Datentabelle
- 12. Dynamische und statische XAML-Menüelemente mischen
- 13. NumPy und SciPy. Statische vs dynamische Belastung
- 14. Statische und dynamische IP Adresse Probleme
- 15. späte statische Bindung in PHP
- 16. Automatische dynamische Bindung im Frühjahr
- 17. WPF TabItem Listbox dynamische Bindung
- 18. Bindung dynamische Kontrollkästchen in Angularjs
- 19. WPF - Dynamische vs statische Ressourcen
- 20. Dynamischer Versand und Bindung
- 21. Warum statische Bindung für Klasse und Funktion anders funktioniert?
- 22. Statische * Vorlage * Klassenmitglied über dynamische Bibliothek
- 23. wpf - Bindung Datacontext statische Eigenschaften von Singletonklasse
- 24. Flex 3: Dynamische Erstellung und Bindung von Textinput
- 25. WPF-Bindung verwenden, um statische Ressource zuzuweisen
- 26. Dynamische Bindung in WPF DataGridCell Vorlage
- 27. Dynamische Bindung von li Elemente klicken Ereignis
- 28. Dynamische Bindung an C# -Ereignisse mit Reflektion
- 29. Excel dynamische Diagramm aus einer Pivot-Tabelle und statische Daten
- 30. dynamische URL auf statische URL Umschreiben und Umleitung
seit Sie erwähnt .exe Ich nehme es als Windows :) – Chubsdad
Ich markierte es Windows :) – user963241