Author Topic: codeblock + GCC in windows questions  (Read 3383 times)

Offline faustf

  • Single posting newcomer
  • *
  • Posts: 3
codeblock + GCC in windows questions
« 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

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1209
Re: codeblock + GCC in windows questions
« Reply #1 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.

Offline faustf

  • Single posting newcomer
  • *
  • Posts: 3
Re: codeblock + GCC in windows questions
« Reply #2 on: December 30, 2021, 08:11:51 pm »
you have  alittel tutorial ?? because i am not expert thanks ??

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1209
Re: codeblock + GCC in windows questions
« Reply #3 on: December 30, 2021, 11:41:39 pm »
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.

Offline faustf

  • Single posting newcomer
  • *
  • Posts: 3
Re: codeblock + GCC in windows questions
« Reply #4 on: December 31, 2021, 10:06:32 am »
ok i  try thank you