Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: faustf on December 30, 2021, 06:28:07 pm
-
Hi Guys , i hope that i write in right place , i have installed in my windows 10 the lasta version of codeblocks + gcc , it work , but when i run gcc pcre1.c -lpcre return me error fatal error: pcre.h: No such file or directory
#include <pcre.h>
probably gcc not have a library PCRE , is possible add to gcc ?? if yes in wich mode?
thanks at all
-
You must download the source of pcre2 (pcre is obsolete) and follow their instructions to compile it. I recommend the cmake method.
Then just add the include folder to the project's compiler search path and the library to the linker.
-
you have alittel tutorial ?? because i am not expert thanks ??
-
That would be OT here, look here (https://github.com/PhilipHazel/pcre2/blob/master/NON-AUTOTOOLS-BUILD) under BUILDING PCRE2 ON WINDOWS WITH CMAKE for more information.
We can help you later if you have problems configuring C::B to use the library.
-
ok i try thank you