Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: faustf on December 30, 2021, 06:28:07 pm

Title: codeblock + GCC in windows questions
Post 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
Title: Re: codeblock + GCC in windows questions
Post by: Miguel Gimenez on December 30, 2021, 07:46:10 pm
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.
Title: Re: codeblock + GCC in windows questions
Post by: faustf on December 30, 2021, 08:11:51 pm
you have  alittel tutorial ?? because i am not expert thanks ??
Title: Re: codeblock + GCC in windows questions
Post by: Miguel Gimenez on December 30, 2021, 11:41:39 pm
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.
Title: Re: codeblock + GCC in windows questions
Post by: faustf on December 31, 2021, 10:06:32 am
ok i  try thank you