dodng/fast_ring_queue

This is a C++ project not C

Dweller opened this issue · 1 comments

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

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