regex.h

  • Uberness
    14th Feb 2011 Member 0 Permalink
    1>------ Build started: Project: source, Configuration: Debug Win32 ------
    1> misc.c
    1>src\misc.c(4): fatal error C1083: Cannot open include file: 'regex.h': No such file or directory
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    I started to mod, and followed all the directions, but I keep getting this error.

    antb said that win32 should compile now.
  • Xenocide
    14th Feb 2011 Former Staff 0 Permalink
    You need regex.h which is available from SourceForce as part of the mingw32 project.
  • Uberness
    14th Feb 2011 Member 0 Permalink
    @antb
    Okay, I'll try.
    Can you give me a link?

    *EDIT: I found it, but I get this error now.

    1>------ Build started: Project: source, Configuration: Debug Win32 ------
    1> misc.c
    1>src\misc.c(58): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string.h(105) : see declaration of 'strcpy'
    1>src\misc.c(94): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(234) : see declaration of 'fopen'
    1>src\misc.c(128): error C2065: 'preg' : undeclared identifier
    1>src\misc.c(128): error C2146: syntax error : missing ';' before identifier 'regex_free'
    1>src\misc.c(128): warning C4013: 'regex_free' undefined; assuming extern returning int
    1>src\misc.c(128): error C2065: 'preg' : undeclared identifier
    1>src\misc.c(128): error C2064: term does not evaluate to a function taking 305 arguments
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  • Xenocide
    14th Feb 2011 Former Staff 0 Permalink
    No idea about those :s seems like that header is only usable with mingw32...
  • Uberness
    14th Feb 2011 Member 0 Permalink
    @antb
    I'm using visual studio.
  • tommig
    14th Feb 2011 Member 0 Permalink
    can you give me a link to regex.h so i can get going?
    edit:
    oh ,sorry found it, but now i get this error
    1>------ Build started: Project: powder toy version tg 0, Configuration: Debug Win32 ------
    1> misc.c
    1>C:\Users\User\Documents\powder toy\FacialTurd-The-Powder-Toy-809289b\includes\regex.h(4): fatal error C1083: Cannot open include file: 'sys/cdefs.h': No such file or directory
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  • tommig
    14th Feb 2011 Member 0 Permalink
    no, its not helped, i'll keep trying
    edit:
    big error this time
    1> misc.c
    1>C:\Users\User\Documents\powder toy\FacialTurd-The-Powder-Toy-809289b\includes\regex.h(45): error C2061: syntax error : identifier '__THROW'
    1>C:\Users\User\Documents\powder toy\FacialTurd-The-Powder-Toy-809289b\includes\regex.h(45): error C2059: syntax error : ';'
    1>C:\Users\User\Documents\powder toy\FacialTurd-The-Powder-Toy-809289b\includes\regex.h(46): error C2061: syntax error : identifier '__THROW'
    1>C:\Users\User\Documents\powder toy\FacialTurd-The-Powder-Toy-809289b\includes\regex.h(46): error C2059: syntax error : ';'
    1>C:\Users\User\Documents\powder toy\FacialTurd-The-Powder-Toy-809289b\includes\regex.h(47): error C2061: syntax error : identifier '__THROW'
    1>C:\Users\User\Documents\powder toy\FacialTurd-The-Powder-Toy-809289b\includes\regex.h(47): error C2059: syntax error : ';'
    1>C:\Users\User\Documents\powder toy\FacialTurd-The-Powder-Toy-809289b\includes\regex.h(48): error C2061: syntax error : identifier '__THROW'
    1>C:\Users\User\Documents\powder toy\FacialTurd-The-Powder-Toy-809289b\includes\regex.h(48): error C2059: syntax error : ';'
    1>src\misc.c(125): warning C4013: 'regcomp' undefined; assuming extern returning int
    1>src\misc.c(127): warning C4013: 'regexec' undefined; assuming extern returning int
    1>src\misc.c(128): warning C4013: 'regfree' undefined; assuming extern returning int

    ??????????
  • thehugh100
    14th Feb 2011 Member 0 Permalink
    yep thats what i get too, any help?
  • awesome
    14th Feb 2011 Member 0 Permalink
    whats regex.h?