Comments (3)
One way to fix it is by doing
#ifdef EPOXY_DUINO
#define int int16_t
#endif
in your header file, but it will break the libraries you use. Any way to 'inject' it into other libraries?
from epoxyduino.
EpoxyDuino is not meant to be a perfect simulator of an AVR microcontroller. It aims to support the Arduino API under a Unix environment. The sizeof(int)
is not defined by the C/C++ language, but is implementation defined. This means that the sizeof(int) is the size given by the C++ compiler under Unix, which is 4, which happens to be the same in all Arduino environments except for AVR. I mention this potential issue with EpoxyDuino at the top of the README (https://github.com/bxparks/EpoxyDuino).
If you have code that assumes sizeof(int) == 2, it is non-portable code and will not work under EpoxyDuino. If you have control over that code, the solution is to change it explicitly to int16_t
, so that it becomes portable. If you don't have control over that code, then you will need to fork it and fix it, and maybe upstream it to the original author of that library.
from epoxyduino.
Added an explicit note in the 'Bugs and Limitations' section in the README.md.
Closing as Won't Fix.
from epoxyduino.
Related Issues (20)
- change project name from UnixHostDuino to EpoxyDuino
- Using avr functions in EEPROM.h HOT 2
- PipeFail test does not finish HOT 4
- snprintf_P is not supported HOT 1
- snprintf formatting does not honour AVR '%S' (i.e. not '%s') for printing F() flash strings HOT 2
- IPAddress::toString() needed HOT 2
- Add support for Windows using MINGW32 HOT 1
- Terminal I/O as under Arduino IDE or terminal emulation program HOT 1
- Print::println() line-ending is inconsistent with Arduino core (a documented change) HOT 6
- Is it possible to override analogRead when testing with AUnit?
- IPAddressTest:6:10: fatal error: AceCommon.h: No such file or directory HOT 1
- Invalid library found in xxx/Arduino/libraries/EpoxyDuino: no headers files (.h) found in xxx/Arduino/libraries/EpoxyDuino HOT 1
- serialEvent() does not seem to work or is not implemented HOT 1
- Error when including U8glib: "Undefined symbols for architecture x86_64"
- Simulated time HOT 3
- std::make_unique HOT 4
- Including LoRa library make error - use of undeclared identifier 'digitalPinToInterrupt' HOT 1
- Add support for ISR. HOT 1
- location of EpoxyDuino HOT 1
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 epoxyduino.