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
I am trying to build a very simple application using cmake and realm as a database. When trying to build using cmake on linux i am facing some errors about imports from the std namespace.
error: ‘uint_fast16_t’ in namespace ‘std’ does not name a type
cpprealm-src/src/cpprealm/internal/bridge/realm.hpp:29:1: note: ‘std::uint_fast16_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
I dont have much experience using c++ so i'm not sure if it's a error or some configuration problem.
This is my cmakelists file:
cmake_minimum_required(VERSION 3.15)
project(RealmRs)
set (REALM_CPP_NO_TESTS ON )
set(CMAKE_CXX_FLAGS"-fpermissive -Wchanges-meaning")
# Minimum C++ standardset(CMAKE_CXX_STANDARD 17)
# In a Windows install, set these compiler flags:if(MSVC)
set(CMAKE_CXX_FLAGS"${CMAKE_CXX_FLAGS} /Zc:preprocessor /bigobj")
endif()
# Include the FetchContent module so you can download the C++ SDKInclude(FetchContent)
# Declare the version of the C++ SDK you want to download
FetchContent_Declare(
cpprealm
GIT_REPOSITORY https://github.com/realm/realm-cpp.git
GIT_TAG v1.0.0
)
# The MakeAvailable command ensures the named dependencies have been populated
FetchContent_MakeAvailable(cpprealm)
add_library(test main.cpp)
target_link_libraries(testPRIVATE cpprealm)
The text was updated successfully, but these errors were encountered:
I am trying to build a very simple application using cmake and realm as a database. When trying to build using cmake on linux i am facing some errors about imports from the std namespace.
I dont have much experience using c++ so i'm not sure if it's a error or some configuration problem.
This is my cmakelists file:
The text was updated successfully, but these errors were encountered: