Skip to content

Compilation error with the VS2022 with cmake build system #432

@Aswin-programmer

Description

@Aswin-programmer

While I was trying to compile the project in VS2022 with the cmake build system. I use the add_subdirectory and target_include_libraries to add this library to my project.
My setup is quite simple:
// TODO: Add tests and install targets if needed.
add_subdirectory(EXTERNAL/REACTPHYSICS3D)

target_link_libraries(ReactPhysics3DSample PRIVATE reactphysics3d)

When I was trying to compile, I observe some errors in this file:
REACTPHYSICS3D\include\reactphysics3d\utils\DefaultLogger.h

error C2039: 'system_clock': is not a member of 'std::chrono'
error C2039: 'now': is not a member of 'std::chrono'
error C2039: 'to_time_t': is not a member of 'std::chrono'
error C3861: 'to_time_t': identifier not found

I manage this fix these errors:
Just add this line at the top of the file:
#include

Thanks for amazing library. I wanted to make some simple 3d games. This library seems to be very good at the first glance. Soon I will build my very own first 3d game with this library. This library is not bloated like Physx or outdated like bullet. Its a good library. Please to give more support for this library.

I have a doubt for using this library in open world games. Usually in the open world games, we have to load a lot of entities. But loading loading everything will result in memory bloating. How to solve this. For the rendering we have the frustum culling or oak tree optimizations. Similarly is there is any way to use this library so that I will able to run physics for the open world game with this physics library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions