DiligentGraphics / DiligentEngine

A modern cross-platform low-level graphics library and rendering framework
http://diligentgraphics.com/diligent-engine/
Apache License 2.0
3.63k stars 331 forks source link

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

Open chelvisgit opened 3 weeks ago

chelvisgit commented 3 weeks ago

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

TheMostDiligent commented 3 weeks ago

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

chelvisgit commented 3 weeks ago

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'

TheMostDiligent commented 3 weeks ago

SSE2 should be fully supported by AMD