Skip to content

Building test with g++ fails #45

@brendan-simon-indt

Description

@brendan-simon-indt

I'm trying to compile this, to use with Catch2 C++ unit test framework.

I'm getting errors with typedefs of structs with the same name. I got someway to resolving those by adding _t to the typedef names and changing code where used.

Is Mimick designed to be used with C++?
Note the source code I'm testing is written in C, but the test framework is C++

The head of my meson.build file has the following (for reference).

project('foo-test', 'cpp', 'c',
  version : '0.1',
  default_options : ['warning_level=3', 'cpp_std=c++17', 'c_std=c17']
  # default_options : ['warning_level=everything', 'cpp_std=c++17', 'c_std=c17']
  )

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