You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I work on MSVC compiler testing, and we regularly build popular open-source project including box2d, with development builds of MSVC in order to find and fix regressions before they ship and cause problems for you.
Recently, as I build box2d with x86 as the target architecture from source with MSVC, I encountered the error as following:
C:\gitP\erincatto\box2d\src\core.c(118,8): error C2220: the following warning is treated as an error [C:\gitP\erincatto\box2d\build_x86\src\box2d.vcxproj]
C:\gitP\erincatto\box2d\src\core.c(118,8): warning C4047: 'initializing': 'void *' differs in levels of indirection from 'int' [C:\gitP\erincatto\box2d\build_x86\src\box2d.vcxproj]
The compiler somehow is entering into the else block, but MSVC does not supporting aligned_alloc but they have a _aligned_malloc instead. For more details, refer to the official documentation: aligned-malloc.
After I have applied this msvc_suport.patch, the build was successful, but it introduced a new issue when running test.exe. Although the test runs successfully, the exit code is incorrect. This suggests that the patch I used is likely not the correct solution."
- optimized ray and shape cast : 2x faster
- update mass options instead of automatic mass
- fixes for 32-bit Windows build
- b2TreeStats for measuring query performance
- reduced tree node size from 48-bytes to 40-bytes
- fixes for 32-bit Neon
- MSVC warning level 4 and fixes#814, #815, #813, #809
Hi, I work on MSVC compiler testing, and we regularly build popular open-source project including box2d, with development builds of MSVC in order to find and fix regressions before they ship and cause problems for you.
Recently, as I build box2d with x86 as the target architecture from source with MSVC, I encountered the error as following:
I have encountered this error at https://github.com/erincatto/box2d/blob/main/src/core.c#L118 and https://github.com/erincatto/box2d/blob/main/samples/main.cpp#L74.
The compiler somehow is entering into the
else
block, but MSVC does not supportingaligned_alloc
but they have a_aligned_malloc
instead. For more details, refer to the official documentation: aligned-malloc.After I have applied this msvc_suport.patch, the build was successful, but it introduced a new issue when running test.exe. Although the test runs successfully, the exit code is incorrect. This suggests that the patch I used is likely not the correct solution."
Steps to reproduce:
Build log: box2d.log
The text was updated successfully, but these errors were encountered: