Open RT2Code opened 5 years ago
Not sure if its a problem of a newer VS version or older. Please, what is your Visual Studio 2019 version? That version you posted, I am still not sure to what VS version it links. I am using VS 16.1.6 and it seems to compile just fine.
It seem to be a problem with a newer VS version then, because mine is 16.2.2.
I've been able to compile everything with no error with this small workaround :
PX_FORCE_INLINE Vec3V V3LoadA(const PxF32* const f)
{
ASSERT_ISALIGNED16(f);
return [ & ](){ return V4ClearW(_mm_load_ps(f)); }(); // MSVC 142 bug workaround
}
Hmm today's update to 16.2.3 seems to not fix the issue. I am so far not able to isolate the issue to send a simplified repro case. Thanks for the workaround!
Hello,
When I try to build PhysX 4.1.1 with Visual Studio 2019, I get the following errors :
It happens on release, profile and checked configurations (not debug), and only when building for x86 platforms (x64 is working fine).
It looks like MSVC have a problem with this function in PsWindowsInlineAoS.h
It appears to be a compiler bug. I'm using Visual Studio 2019 with MSVC build tools 14.22. I also tried with the 14.20 version, and I still got the same problem. I wanted to report it to you first, but the next step is probably reporting it to Microsoft.