[O] Error Using Dev-C++ to compile

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BennyG
    Rookie
    • Sep 2008
    • 7

    [O] Error Using Dev-C++ to compile

    Ok, I am a total newb so please forgive me if I am missing something easy.

    I just got a copy of Dev-C++ to compile O 1.10u to fix the 'hidden copper/silver/gold' inventory bug. I followed the instructions for angband compiling found http://rephial.org/wiki/Compiling#s2_4

    I am getting his error:

    584 C:\Dev-Cpp\Projects\oangband110u\src\main.c `modules' undeclared (first use in this function)

    Here is the section: (Offending line in red)

    #ifndef _WIN32_WCE
    /* Print the name and help for each available module */

    for (j = 0; j < (int)N_ELEMENTS(modules); j++)
    {
    printf(" %s %s\n",
    modules[j].name, modules[j].help);
    }
    #endif


    Any help would be appreciated.

    Thanks,

    Ben
  • Nick
    Vanilla maintainer
    • Apr 2007
    • 9637

    #2
    Originally posted by BennyG
    I just got a copy of Dev-C++ to compile O 1.10u to fix the 'hidden copper/silver/gold' inventory bug. I followed the instructions for angband compiling found http://rephial.org/wiki/Compiling#s2_4
    It looks like you have not added the -DWINDOWS to the compiler options (instruction 6).
    One for the Dark Lord on his dark throne
    In the Land of Mordor where the Shadows lie.

    Comment

    • BennyG
      Rookie
      • Sep 2008
      • 7

      #3
      I double checked. I used the flags exactly as shown on that page.

      Comment

      • Nick
        Vanilla maintainer
        • Apr 2007
        • 9637

        #4
        Odd. The build system for V is different to the O110u one, but this particular problem is hard to understand.

        If it's any comfort, I have made a list of things that I need to fix...
        One for the Dark Lord on his dark throne
        In the Land of Mordor where the Shadows lie.

        Comment

        • BennyG
          Rookie
          • Sep 2008
          • 7

          #5
          Is there a better IDE that I can use, preferably a free one?

          Comment

          • BennyG
            Rookie
            • Sep 2008
            • 7

            #6
            On the plus side, I have been playing FAangband since I have been having so much trouble with O.

            Comment

            • Nick
              Vanilla maintainer
              • Apr 2007
              • 9637

              #7
              This thread may help you.

              Originally posted by BennyG
              On the plus side, I have been playing FAangband since I have been having so much trouble with O.
              Oops - should have kept my mouth shut...
              One for the Dark Lord on his dark throne
              In the Land of Mordor where the Shadows lie.

              Comment

              • Pete Mack
                Prophet
                • Apr 2007
                • 6883

                #8
                Originally posted by BennyG
                Is there a better IDE that I can use, preferably a free one?
                You mean like Dev Studio 2008 (express)? Since M$ made its basic IDE free (in 2004), it seems a bit pointless to support after-market developer environments. MinGW/cygwin for basic compilation and devenv.exe for an IDE should be enough.
                Last edited by Pete Mack; September 30, 2009, 05:31.

                Comment

                • BennyG
                  Rookie
                  • Sep 2008
                  • 7

                  #9
                  Tried using VS2008 express for c/c++. Got more errors then I did with Dev-c++ and it installed like 8 other useless apps.
                  Haven't tried eclipse yet.

                  Comment

                  Working...
                  😀
                  😂
                  🥰
                  😘
                  🤢
                  😎
                  😞
                  😡
                  👍
                  👎