problem with identifier '__THROW'

  • tommig
    9th Mar 2011 Member 0 Permalink
    hello TPT
    i have been worknig on my mod and have come across an error as follows
    http://pastebin.com/Bi4iUafP
    anybody know what i can do?
    thanks
    tommig
  • PizzaPlatypus
    9th Mar 2011 Member 0 Permalink
    You've missed out lots of semi-colons and, is there anywhere, where you've put THROW?
  • Pilihp64
    9th Mar 2011 Developer 0 Permalink
    @PizzaPlatypus
    lol, no

    it looks like a problem linking with regex to me, you need more than the .h file, you need the lib as well.
  • tommig
    9th Mar 2011 Member 0 Permalink
    the section of code that has flagged up:
    int regcomp(regex_t* preg, const char* regex, int cflags) __THROW;
    int regexec(const regex_t* preg, const char* string, size_t nmatch, regmatch_t pmatch[], int eflags) __THROW;
    size_t regerror(int errcode, const regex_t* preg, char* errbuf, size_t errbuf_size) __THROW;
    void regfree(regex_t* preg) __THROW;

    I've not touched the code yet.
    I've added regex.h and cdefs.h, are there any others I need?

    BUMP:
    where can i get regex.lib???
    any help
  • tommig
    9th Mar 2011 Member 0 Permalink
    BUMP:
    where can i get regex.lib???
    any help
  • ClaymoreTF2
    9th Mar 2011 Member 0 Permalink
    @tommig
    Copy other .dll and rename ex. SDL.dll to regex.lib.
    PS:I have a mod but i don't show. It's private. :p
  • tommig
    9th Mar 2011 Member 0 Permalink
    no, hasn't helped
    this doesn't do anything when i compile
  • ClaymoreTF2
    9th Mar 2011 Member 0 Permalink
    @tommig
    It's should work I do the same to my mod copy from officaial and rename. :D
    Edit:Sorry I'm don't remember i must to compile.
  • tommig
    9th Mar 2011 Member 0 Permalink
    no, i've tried to get around it but it's not worked
    can anyone give me a link to a regex.lib download?