compile error first time compilling

  • abaabaabaaba4
    15th Nov 2011 Member 0 Permalink
    @pilojo (View Post)
    When it says add, do you click at the begging of the text and paste it. Thanks for telling me this.
  • abczyx123987
    15th Nov 2011 Member 0 Permalink
    So next to "Include Directories", there's a text box, and at the far right of it, there's an arrow that indicates that there's a drop-down menu there...
    ...you click that arrow, then click "<Edit...>", then click the button with the folder, and type in "$(ProjectDir)Includes" (exactly like that, without the quotes).

    Similarly for Library Directories, except it's "$(ProjectDir)Libraries" (exactly those words, without the quotes).
  • abaabaabaaba4
    15th Nov 2011 Member 0 Permalink
    http://pastebin.com/0zJXRukx Its better because I placed the required source files with the ones outside the src file because it was telling me that an sdl couldn't be found so I figured that out but now it doesn't realy give an error message it just says failed and I'm trying to compile with the latest source on github now, not the opengl version.
  • abczyx123987
    15th Nov 2011 Member 0 Permalink
    In luaconsole.c, go to lines 536, 538, 560, and 562, and replace (void*) with (char*).

    That should fix everything.
    Hopefully.

    (notice that you did get some errors -- you probably just didn't notice)
  • abaabaabaaba4
    15th Nov 2011 Member 0 Permalink
    @abczyx123987 (View Post)
    Thanks for helping me with this, now I get this http://pastebin.com/QqVGLp2N I cant really understand the errors in this so could you have a look.
  • abczyx123987
    15th Nov 2011 Member 0 Permalink
    Hmm...interesting error, I haven't gotten that myself. (but then again, I haven't tried compiling with Visual Studio for a while now, so...)

    Assuming you're working with the latest github source, If you go to the addchar function in graphics.c (it's on line 884 for me), try removing the "_inline" from it.
    In other words, change
    _inline int addchar(pixel *vid, int x, int y, int c, int r, int g, int b, int a)

    to just
    int addchar(pixel *vid, int x, int y, int c, int r, int g, int b, int a)

    and see if that helps at all.
    (since when did the inlines start coming back in? Hmm...at least they're not causing too much trouble this time)
  • abaabaabaaba4
    15th Nov 2011 Member 0 Permalink
    Its compiling the latest version now so that's good. The first thing I wanted to do was double the resolution, I went into defines.h and doubled xres yres and xcntr ycntr. when I compile it says that its succeeded but  when I open the powder toy exe windows immediately says the program has crashed. I tried fixing it and now the source is broke so Ill try and set everything back up to how it was then Ill post a error report thing.

    EDIT:http://pastebin.com/CC8dVTBe there's the build with the higher res's error report.