"make" error

Hi, i'm trying to use "make" to complie a file but i keep getting this error :
1
2
error: invalid arguments "-std=c++11" not allowed with 'C/Objc'
error: invalid arguments "-std=c++11" not allowed with 'C/Objc'


here's the Makefile:
1
2
3
4

find: find.c helpers.c
        clang -ggdb3 -O0 -std=c++11 -Wall -Werror -o find find.c helpers.c -lm


Help...
you are currently trying to use the Clang C compiler, you need to use clang++ for the c++ compiler
you are compiling c sources, ¿why are you trying to define a c++ standard?
perhaps you mean -std=c11
Topic archived. No new replies allowed.