Ich habe ein Projekt, wo ich die Bibliothek importieren möchte. Wenn ich das tun (importieren LIB-Dateien aus der Bibliothek) und nennen als eine beliebige Funktion aus der Bibliothek bekomme ich folgende Fehler:printf/_vsnprintf_l/bereits in msvcrtd.lib definiert (MSVCR120D.dll)
"C:\Uz\myproj.vcxproj" (default target) (1) ->(Link target) ->
aziotsharedutil.lib(consolelogger.obj) : error LNK2005: printf already defined in msvcrtd.lib(MSVCR120D.dll) [C:\Uz\myproj.vcxproj]
aziotsharedutil.lib(socketio_win32.obj) : error LNK2005: _vsnprintf_l already defined in msvcrtd.lib(MSVCR120D.dll) [C:\Uz\myproj.vcxproj]
uamqp.lib(amqpvalue_to_string.obj) : error LNK2005: _vsnprintf_l already defined in msvcrtd.lib(MSVCR120D.dll) [C:\Uz\myproj.vcxproj]
C:\Dz\myproj.vcxproj\myproj.dll : fatal error LNK1169: one or more multiply defined symbols found [C:\Uz\myproj.vcxproj]
0 Warnung (en) 4 Fehler (n)
Wer weiß, wie kann ich das beheben? Ich habe folgende Bibliotheken in meinem Projekt importiert:
MSVCPRTD.lib
msvcrtd.lib
kernel32.lib
ole32.lib
aziotsharedutil.lib //imported Library .lib file
uamqp.lib //imported Library .lib file
eventhub_client.lib //imported Library .lib file
Advapi32.lib
Crypt32.lib
Ws2_32.lib
Secur32.lib
ucrt.lib
vcruntime.lib
Anmerkung 1
Alle 3 Projekte, die als Static Link Library LIB gebaut werden, haben dieselben Einstellungen Multithread-Debug-DLL (/ MDd), wie mein Projekt.
Danke!