Giter Club home page Giter Club logo

Comments (7)

graial avatar graial commented on July 22, 2024 1

Greetings @FabioBatSilva, just wanted to mention that with some help on the cpputest forum, I was able to clear this.

https://github.com/graial/ArduinoFake-cpputest

my forked repo is now building but encountering a different error which I haven't yet investigated. If I can't sort that out, I'll open up a different issue when i get the chance

cheers

from arduinofake.

FabioBatSilva avatar FabioBatSilva commented on July 22, 2024

Hi,

Might be something related to cpp 12.

You might wanna start with one of the examples and -std=gnu++17

from arduinofake.

graial avatar graial commented on July 22, 2024

Good evening and thank you for your response. No luck with gnu++17 though.

these are the default compiler flags used by cpputest

-pedantic
-Wno-missing-prototypes
-Wno-strict-prototypes
-Wno-c++14-compat
--std=gnu++17 // was originally --std=c++11
-Wno-c++98-compat-pedantic
-Wno-c++98-compat

from arduinofake.

basvodde avatar basvodde commented on July 22, 2024

So... if you comment out all of the CppUTest code and just do the #include of the ArduinoFake then it already occurs ?

from arduinofake.

graial avatar graial commented on July 22, 2024

yes, correct.
and if that #include is removed, the test suite completes successfully

So there seems to be something in the makefile or compiler chain that is unhappy

from arduinofake.

graial avatar graial commented on July 22, 2024

The ArduinoFake example projects and tests (using Unity) work for me.

I attempted to use the same approach to build cpputest in this repo and it fails on the same error.

from arduinofake.

graial avatar graial commented on July 22, 2024

I've now gotten this to a minimal reproducible example via cmake.

i believe that the lines:
set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON)

establish the -std=gnu++17 specification

cheers

from arduinofake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.