I Can't Compile

  • cctvdude99
    24th Mar 2011 Member 0 Permalink
    @rmEXE
    USE PASTEBIN!

    Seriously... Anyway, I think you need to put "includes/filename.h" (including the quote marks " ")

    Then it should work!
  • rmEXE
    24th Mar 2011 Member 0 Permalink
    IM Sorry but i am new to C++ and i am using C++ 2010 and i dont know wat PASTEBIN is..... SORRY.


    Sorry bout the long error list but the thing with the #include element.h is that where the quotes suposed to go herE? cuz it looks like this: #include < element.h > Without the space between element.h and < >... it should look like this right?: #include "element.h"
  • jacksonmj
    24th Mar 2011 Developer 0 Permalink
    Add the path to the includes folder of the source to the compiler include paths setting. Like it tells you near the end of the Visual Studio setup wiki page.

    https://powdertoy.co.uk/Wiki.html?id=win32_code_setup#visual_studio_windows
  • dnerd
    24th Mar 2011 Member 0 Permalink
    @rmEXE
    TPT is in C
  • rmEXE
    24th Mar 2011 Member 0 Permalink
    ok......... AHHHHHHHHHHHHHHHHHH! LOL i did wat wiki sed and i still got ERRORS and it would not let me start the program. and i got the source code fro powder toy and this may sound wierd but the folder it waz in was called FacialTurd-The-Powder-Toy-c78d420 and i dont know if it is missing files or something or wat! ERROR list:

    http://www.pastebin.com\bERC0UYc
  • boxmein
    24th Mar 2011 Former Staff 0 Permalink
    @peoplewithridiculouslyhugeposts (spam thread not included) Use pastebin.
    btw, your only errors are: (the rest are harmless warnings =) )
    1>C:\users\rac\sources\The-Powder-Toy\Includes\powder.h(271): error C2078: too many initializers
    1>C:\users\rac\sources\The-Powder-Toy\Includes\powder.h(271): error C2078: too many initializers
    Remove some initialisers and you're fine. :)
  • rmEXE
    24th Mar 2011 Member 0 Permalink
    ok how do u get rid of thoes again sorry for being clueless
    LOL and i am very new to C++
  • ubuntupokemoninc
    24th Mar 2011 Member 0 Permalink
    I have the same problem when i try to compile my mod on windows, it only wants to work on linux
  • boxmein
    24th Mar 2011 Former Staff 0 Permalink
    @rmEXE
    It's C, actually.
    If you have an array that has content that exceeds the array's limit, this error is thrown. Example:
    int main() {
    int d[2] = {1, 2, 3}; // C2078 (Here you have defined two spaces but have three values)
    int e[2] = {1, 2}; // OK ( two spaces, two values = OK)
    }
    Get rid of 'em by 1) removing the limit by making the array's square brackets empty(ind d[] = {2, 3, 4}) or increasing the limit(int d[2] -> int d[3]
  • ubuntupokemoninc
    24th Mar 2011 Member 0 Permalink
    Fillip kofron converted my source code to c++

    lol