Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This is a C++ project not C #3

Open
Dweller opened this issue Apr 2, 2020 · 1 comment
Open

This is a C++ project not C #3

Dweller opened this issue Apr 2, 2020 · 1 comment

Comments

@Dweller
Copy link

Dweller commented Apr 2, 2020

This project is listed as a C based source and its C++

@membphis
Copy link

membphis commented Dec 2, 2022

yes, and I got error when I tried to compile this project

➜  fast_ring_queue git:(master) make
g++ -g -o ring_test main.c -lpthread -fpermissive
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
main.c:79:22: error: array 'new' cannot have initialization arguments
        Ring_Queue *queue = new Ring_Queue[THREAD_NUM](LOOP_SIZE,sizeof(DATA_TYPE));
                            ^                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [ring_example] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants