It's been a while (problem compiling)

  • PizzaPlatypus
    17th Mar 2011 Member 0 Permalink
    got these errors:
    1>pizzaplatypus' mod code\src\interface.c(2832): error C2065: 'full_save' : undeclared identifier
    1>pizzaplatypus' mod code\src\interface.c(2833): error C2065: 'full_save' : undeclared identifier
    a bit and this one:
    1>pizzaplatypus' mod code\src\interface.c(2832): error C2275: 'pixel' : illegal use of this type as an expression
    And finally the dreaded:
    1>pizzaplatypus' mod code\src\misc.c(4): fatal error C1083: Cannot open include file: 'regex.h': No such file or directory
    AAAAAHHHHH!!!!!!
    P,S this is with lates code as I'm trying to update my mod.
  • tommig
    17th Mar 2011 Member 0 Permalink
    well, i can help you with regex
    put the files from this zip in the correct files (except regex-bcc.lib)
    http://sourceforge.net/projects/gnuwin32/files/regex/2.7/regex-2.7-bin.zip/download
    put this in the includes
    http://www.koders.com/c/fid35B663C8B572BA6DDEF6C49E5EE113A528264094.aspx
    regex done
    (but don't forget to link)
  • PizzaPlatypus
    17th Mar 2011 Member 0 Permalink
    @tommig
    What are

    tommig:

    the correct files
  • cctvdude99
    17th Mar 2011 Member 0 Permalink
    @tommig
    Yes, where do you place them?
  • jacksonmj
    17th Mar 2011 Developer 0 Permalink
    interface.c
    Visual Studio is a fail. Change this code:
    if (!data||!data_size) {
    error_ui(vid_buf, 0, "Save data is empty (may be corrupt)");
    break;
    }
    pixel *full_save = prerender_save(data, data_size, &imgw, &imgh);
    to this:
    pixel *full_save;
    if (!data||!data_size) {
    error_ui(vid_buf, 0, "Save data is empty (may be corrupt)");
    break;
    }
    full_save = prerender_save(data, data_size, &imgw, &imgh);
  • tommig
    17th Mar 2011 Member 0 Permalink
    @PizzaPlatypus
    take the files out of the zip, and place them in the correct folder, so regex.h goes in includes
    (sorry, i missed typed, kinda in a rush at the mo)