User forums > General (but related to Code::Blocks)
Include regex.h
Miguel Gimenez:
TDM 5.1.0 may have no regex, is there a regex file (with no extension) here?
--- Code: ---C:\Program Files (x86)\CodeBlocks\MinGW\lib\gcc\mingw32\5.1.0\include\c++
--- End code ---
If so, that's the path you must add as search directory. If not so, update MinGW to a newer version.
stahta01:
I suggest either using a Code::Blocks project or finding another IDE.
C::B is designed to use C::B projects; it does a very poor job when not using C::B projects.
http://wiki.codeblocks.org/index.php/Creating_a_new_project
Tim S.
oBFusCATed:
@stahta01: Why suggest something that is not helpful? The current problem is not related to the use of projects! Read below for details.
@Rossati: Please rename your file to have .cpp as extension. You're currently using .c which means you're compiling in C mode and not in C++ mode! After that if you have problems with the missing header then you'll need to update your compiler because it might not be available in this version of GCC!
Also next time you could read our FAQ. This problem is specifically addressed there!
Rossati:
Thanks to all
These suggestions have been useful to me:
* C:\Program Files (x86)\CodeBlocks\MinGW\lib\gcc\mingw32\5.1.0\include\c++ contains regex (Miguel)
* Changed estension to .cpp ( oBFusCATed)
* I set -std=c+11 (compilation warning)
Unfortunately, an example of using regular expressions that I try to compile, gives me many errors, but this is only my problem.
Best regards
Navigation
[0] Message Index
[*] Previous page
Go to full version