2009-05-01 3 views
0

Zwei Fragen über statische Bibliothek auf Windows-Plattform,statische Bibliothek auf Windows-Plattform Problem

  1. Wie kann man prüfen, ob eine lib eine statische Bibliothek (oder nicht, zum Beispiel Import-Bibliothek für eine DLL oder ein anderes Format, das ist keine legale statische Bibliotheksdatei, selbst wenn der Dateiname die Erweiterung .lib hat);
  2. Wie überprüft man, ob beim Erstellen einer statischen Bibliothek das MT- oder MD-Flag verwendet wird?

Vielen Dank im Voraus, George

Antwort

1

Ihre Frage 2 ist einfach. das dumpbin Werkzeug in VC kann dies einfach tun:

dumpbin /directives your_static_lib.lib 

Und dann die Abhängigkeitsbibliotheksnamen überprüfen, indem MSVC runtime library list