Comments (7)
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.
Hi,
Might be something related to cpp 12.
You might wanna start with one of the examples and -std=gnu++17
from arduinofake.
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.
So... if you comment out all of the CppUTest code and just do the #include of the ArduinoFake then it already occurs ?
from arduinofake.
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.
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.
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)
- Some issues when using String type
- Delay is causing crash HOT 2
- What licence? HOT 1
- Serial.begin() and Serial.print() are crashing HOT 3
- missing `map` header file HOT 1
- how to handle arduino core libraries from other platforms? HOT 1
- Unit testing Wire.h with UNO build HOT 2
- Any intention to support an EEPROM 'fake' HOT 6
- How to build this project? HOT 3
- Upgrade the `fakeit` lib? HOT 1
- Warnings after upgrading from 0.3.1 to 0.4.0
- How do I compile this project with CMake?
- How to inherit from Stream (`what(): Unknown instance`)
- When including Lib, test throws "Program errored with 3221225785 code"
- About Serial.print() and Serial1.print() in ESP32 projects HOT 1
- Running mocks on device HOT 2
- aunit compatibility
- Failing to 'fakeit::UnexpectedMethodCallException'
- Unable to mock 'when(!Serial)`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduinofake.