Skip to content

/matroskamain.c failes to compile on windows #218

@solomoncyj

Description

@solomoncyj
cmake -S . -B build -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX='C:\' -DCMAKE_SKIP_INSTALL_RPATH:BOOL=1 -G Ninja
-- The C compiler identification is Clang 21.1.0 with GNU-like command-line
-- The CXX compiler identification is Clang 21.1.0 with GNU-like command-line
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/solom/.cargo/bin/sccache.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/bin/ccache.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ZLIB: C:/lib/z.lib (found version "1.3.1.1")
-- Found BZip2: C:/lib/bz2.lib (found version "1.0.6")
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Configuring done (4.3s)
-- Generating done (0.2s)
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_SKIP_INSTALL_RPATH

> ninja

[62/68] Building C object libmatroska2/CMakeFiles/matroska2.dir/matroskamain.c.obj
FAILED: libmatroska2/CMakeFiles/matroska2.dir/matroskamain.c.obj
C:\Users\solom\.cargo\bin\sccache.exe  clang -DHAS_EBML2 -IC:/Users/solom/Downloads/foundation-source/build/libmatroska2 -IC:/Users/solom/Downloads/foundation-source/libmatroska2 -IC:/include -IC:/Users/solom/Downloads/foundation-source/libmatroska2/lzokay/. -IC:/Users/solom/Downloads/foundation-source/libmatroska2/tremor/. -IC:/Users/solom/Downloads/foundation-source/libebml2 -IC:/Users/solom/Downloads/foundation-source/build/libebml2 -IC:/Users/solom/Downloads/foundation-source/build/corec/corec -IC:/Users/solom/Downloads/foundation-source/corec/corec -IC:/Users/solom/Downloads/foundation-source/corec/corec/helpers -IC:/Users/solom/Downloads/foundation-source/corec/corec/.. -IC:/Users/solom/Downloads/foundation-source/corec/corec/helpers/../.. -IC:/Users/solom/Downloads/foundation-source/corec/corec/helpers/. -IC:/Users/solom/Downloads/foundation-source/corec/corec/. -IC:/Users/solom/Downloads/foundation-source/build/corec/corec/helpers/.. -Os -DNDEBUG -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -std=gnu11 -MD -MT libmatroska2/CMakeFiles/matroska2.dir/matroskamain.c.obj -MF libmatroska2\CMakeFiles\matroska2.dir\matroskamain.c.obj.d -o libmatroska2/CMakeFiles/matroska2.dir/matroskamain.c.obj -c C:/Users/solom/Downloads/foundation-source/libmatroska2/matroskamain.c
C:/Users/solom/Downloads/foundation-source/libmatroska2/matroskamain.c:1949:118: error: too few arguments to function call, expected 2, have 1
 1949 |     matroska_block *Result = (matroska_block*)INHERITED(Element,ebml_element_vmt,Node_ClassId(Element))->Copy(Element);
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~        ^
C:/Users/solom/Downloads/foundation-source/libmatroska2/matroskamain.c:2362:132: error: too few arguments to function call, expected 2, have 1
 2362 |     matroska_trackentry *Result = (matroska_trackentry*)INHERITED(Element,ebml_element_vmt,MATROSKA_TRACKENTRY_CLASS)->Copy(Element);
      |                                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~        ^
2 errors generated.
[63/68] Building C object mkclean/CMakeFiles/mkclean.dir/mkclean.c.obj
ninja: build stopped: subcommand failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions