Error Compiling with Visual Studio

  • star400040
    16th Nov 2011 Member 0 Permalink
    This is the error I get when I try to compile/built the project

    1>------ Build started: Project: PowderToy, Configuration: Release Win32 ------
    1>  luaconsole.c
    1>luaconsole.c(536): error C2036: 'void *' : unknown size
    1>luaconsole.c(538): error C2036: 'void *' : unknown size
    1>luaconsole.c(560): error C2036: 'void *' : unknown size
    1>luaconsole.c(562): error C2036: 'void *' : unknown size


    I am pretty sure I did everything correctly as I followed the directions in the wiki.


    somebody please help me I don't understand how to fix this problem, I went into the luaconsole code and I went to the lines where the errors occur and it told me that they need to be pointers, but from my understanding the code they already should be pointers :P

    EDIT: I think I fixed that problem mentioned above but now I am getting another problem this time in the form of a fatal error
    1>regex.lib(regex2.dll) : error LNK2005: _regfree already defined in regex.obj
    1>regex.lib(regex2.dll) : error LNK2005: _regexec already defined in regex.obj
    1>regex.lib(regex2.dll) : error LNK2005: _regcomp already defined in regex.obj
    fatal error LNK1169: one or more multiply defined symbols found
  • abczyx123987
    16th Nov 2011 Member 0 Permalink
    First of all, I hope that in luaconsole.c you changed (void*) to (char*) where you were getting those errors.

    And about your other errors, if you go to the Solution Explorer (where the list of the source files are), and there happens to be a "regex.c" file in there, right-click it and click "exclude from project". Then rebuild.
  • star400040
    16th Nov 2011 Member 0 Permalink
    Thank you that worked, however now I am getting an error when trying to run the project.

    It says pthreadGC2.dll is missing, anyone know where I can find this file?
    Here is the pastebin of the error console