WindowsHModular icon indicating copy to clipboard operation
WindowsHModular copied to clipboard

Fail to build on MacOS

Open Treata11 opened this issue 2 months ago • 1 comments

I have a M1 machine & it's not possible to build the project ... I didn't rely on the pre-canned MAKEFILE in test directory (since that simply didn't work at all) & instead, I created a very simple CMakeLists.txt config:

cmake_minimum_required(VERSION 3.10)
project(WindowsHModular)

include_directories(include)

add_library(delta-core STATIC
    # Source files
    test/test.c
    main.c
)

& in the main.c file, I only included the win32/windows.h header. But the project fails to build running the command cmake --build . with error:

fatal error: too many errors emitted, stopping now [-ferror-limit=]

I'll share a list of the errors. (Most of them, I'm familiar with & know a solution for ... they are simply APIs found only on windows & not on other platforms.) My entire intention of using WindowsHModular was to build a windows-project which relied on Windows.h header in the code ... So I figured this project would fix the absence of the windows headers ...

Treata11 avatar Jun 20 '24 10:06 Treata11