Hello,
I have several libraries built using VS2022 for ARM64 and I want to combine to one large one.
I have setup a batch file that attempts to combine all the libraries to one large one using C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.42.34433\bin\Hostx86\x86\lib.exe (note that it appears the .exe is all the same no matter if you use Hostx86 or Hostx64 or the x86 or x64 or ARM64 directory).
The first one pass works okay (just the one input file output to another file) but, when the lib that was created is renamed and used as the first input file with the next lib as the second input file it gives this error:
fatal error C1007: unrecognized flag '-ArmArchitectureLevel8' in 'p2'
LINK : fatal error LNK1257: code generation failed
The parameters in the batch file to lib look like: /NOLOGO /MACHINE:ARM64 /OUT:"%outpath%" %existingname% "%inname%"
I added /Machine when this problem came up but doesn't fix it.
Any ideas to get this to work or am I going to have to keep them all separate (I already do that with the WDK winnet amd64/i386 libs created via sources).
TIA!!