DiligentEngine icon indicating copy to clipboard operation
DiligentEngine copied to clipboard

Diligent libraries compiled with Intel does not link when compile on AMD

Open chelvisgit opened this issue 1 year ago • 3 comments

Trying to link our project with previously compiled Diligent lib/dlls (on Intel), we are receiving this message when we try to compile it with AMD 7950x:

Error C1047 The object or library file '....\lib\Release\Diligent-Win32Platform.lib' was created by a different version of the compiler than other objects like '....\lib\xxxxxx.lib'; rebuild all objects and libraries with the same compiler

Machine A: OS: Windows 11 Pro 22H2 Build tools: Visual Studio 2022 14.41.34120 CPU: 13th Gen Intel(R) Core(TM) i7-13800H 2.50 GHz GPU: NVIDIA GeForce RTX 4080 Laptop GPU Driver: NVIDIA 565.90

Machine B: Build tools: Visual Studio 2022 14.41.34120 CPU: AMD 7950x

chelvisgit avatar Oct 29 '24 14:10 chelvisgit

I am not sure what the problem here is. Maybe Visual Studio uses different compiler settings on these machines.

TheMostDiligent avatar Oct 29 '24 15:10 TheMostDiligent

Trying to link the libraries with AMD (compiled with intel CPU) we also receive this error: LINK : fatal error C1007: unrecognized flag '-archSSE2' in 'p2'

chelvisgit avatar Oct 29 '24 16:10 chelvisgit

SSE2 should be fully supported by AMD

TheMostDiligent avatar Oct 29 '24 19:10 TheMostDiligent