Модератор: The trick
Microsoft (R) Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
-link.exe "C:\VBPng\VbSources\Test_SavePng\frmMain.OBJ" "C:\VBPng\VbSources\Test_SavePng\LoadSavePng.OBJ" "C:\Program Files\Microsoft Visual Studio\VB98\VBAEXE6.LIB" /ENTRY:__vbaS /OUT:"C:\VBPng\VbSources\Test_SavePng\LoadSavePng.exe" /BASE:0x400000 /VERSION:2.0 /INCREMENTAL:NO /OPT:REF /MERGE:.rdata=.text /IGNORE:4078 ..\..\VbPngLibCpp\ReleaseLib\msvcrt_winxp.obj ..\..\VbPngLibCpp\ReleaseLib\VBPng.lib -ENTRY:mainCRTStartup /SUBSYSTEM:WINDOWS,5.1
-LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
-LINK : fatal error LNK1104: cannot open file 'uuid.lib'
-LINK : fatal error LNK1104: cannot open file 'msvcprt.lib'
-LINK : fatal error LNK1104: cannot open file 'MSVCRT.lib'
-LINK : fatal error LNK1104: cannot open file 'OLDNAMES.lib'
-LINK : fatal error LNK1104: cannot open file 'Msimg32.lib'
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in VBPng.lib(ti_inst.obj)
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in VBPng.lib(ti_inst.obj)
C:\VBPng\VbSources\Test_SavePng\LoadSavePng.exe : fatal error LNK1169: one or more multiply defined symbols found
The trick писал(а):IconsCursors при компиляции что показывает?
-link.exe "C:\VBPng\VbSources\IconsCursors\frmMain.OBJ" "C:\VBPng\VbSources\IconsCursors\IconCursorAni.OBJ" "C:\Program Files\Microsoft Visual Studio\VB98\VBAEXE6.LIB" /ENTRY:__vbaS /OUT:"C:\VBPng\VbSources\IconsCursors\IconCursorAni.exe" /BASE:0x400000 /VERSION:2.0 /INCREMENTAL:NO /OPT:REF /MERGE:.rdata=.text /IGNORE:4078 /SUBSYSTEM:WINDOWS,5.1 ..\..\VbPngLibCpp\ReleaseLib\msvcrt_winxp.obj ..\..\VbPngLibCpp\ReleaseLib\VBPng.lib -ENTRY:mainCRTStartup
Microsoft (R) Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in VBPng.lib(ti_inst.obj)
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in VBPng.lib(ti_inst.obj)
C:\VBPng\VbSources\IconsCursors\IconCursorAni.exe : fatal error LNK1169: one or more multiply defined symbols found
The trick писал(а):Ну вот что я сделал чтобы без установленной 2010 студии скомпилить:
1. Заменил в папке VB98 линкер и добавил нужные ему файлы (MSVCR100/MSPDB100);
2. Скопировал в папку с проектом файлы kernel32.lib, uuid.lib, msvcprt.lib, msvcrt.lib, oldnames.lib, msimg32.lib.
Adam Smith писал(а):линковщик студии 2010 вроде умеет многоеoptions:
/ASSEMBLYRESOURCE:filename[,[name][,PRIVATE]]
/MACHINE:{ARM|EBC|IA64|MIPS|MIPS16|MIPSFPU|MIPSFPU16|SH4|THUMB|X64|X86}
/MANIFEST[:NO]
/MANIFESTDEPENDENCY:manifest dependency
/MANIFESTFILE:filename
/MANIFESTUAC[:{NO|UAC fragment}]
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 0