Comments (5)
Hi, what C compiler are you using? Also, if you could put the full compile log somewhere I can see it (e.g., gist.github.com), that would be helpful.
from c-ringbuf.
Hi, sorry, this is not a C project issue.
I just noticed, the arduino project is a c++ project 😣. I have adapt the code to make it work.
For now I renamed the new type to ringbuf_p ...
I didn't find any explicit information on whether deftype as same name like above is possible or not in cpp. Would appreciate some guidance.
Thank you for your attention.
from c-ringbuf.
My C and C++ are rusty, but I can't think of any reason why the code in this project wouldn't be valid C++. I will see if I can find some time this weekend to build it with g++ or clang in C++ mode.
from c-ringbuf.
Indeed, C++ is pickier about typedefs that use the same name as an existing type, and also wants a few additional typecasts.
Try this branch:
https://github.com/dhess/c-ringbuf/tree/dhess/c++-fixes
The tests will need more work to make them C++-compliant, but ringbuf.[ch]
should be fine now.
from c-ringbuf.
Thanks for the library.
Agreed that it would be good to avoid this pattern of not having the struct in the header, and instead having a reciprocal typedef (i'm not sure what this is designed to do exactly also).
I'm including the lib in an extern "C" {
so it should be C compatible.
Compiler is gcc for STM32.
from c-ringbuf.
Related Issues (9)
- Fuzz with AFL
- Add Nix support
- Is this library thread safe? HOT 5
- MIN function is undefined? HOT 4
- the function ringbuf_findchr no match/ index 0 confusion HOT 1
- Can you add a simple example for using this little library HOT 2
- Missing ssize_t under Visual Studio HOT 1
- Consider dual licensing aside of CC0 HOT 4
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 c-ringbuf.