c - GCC compiler is unable to find pcre.h -
i trying compile c program uses regexes on freebsd. have checked in /usr/local/include , file pcre.h there.
however, no matter do, following compiler error:
/usr/home/myname/project/include/pcre_wrap.h:4:18: error: pcre.h: no such file or directory
what going wrong? understanding of c libraries on unix better...
as comment above says need use #include. if isn't working may want export environment variable c_include_path
points header file.
failing why not try adding -i/usr/local/include
gcc
call, gcc myfile.c -i/usr/local/include -o myexe
Comments
Post a Comment