News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

codeblock + GCC in windows questions

Started by faustf, December 30, 2021, 06:28:07 PM

Previous topic - Next topic

faustf

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

Miguel Gimenez

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.

faustf

you have  alittel tutorial ?? because i am not expert thanks ??

Miguel Gimenez

That would be OT here, look here 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.

faustf