Menu

#12 Build error

open
nobody
None
5
2013-09-21
2010-02-04
qubodup
No

Hi,

I had to add include stdio.h to src/debug/backtrace.cpp but then still got an error:

In file included from parse.cpp:27:
/home/qubodup/src/subversion/goblinhack/trunk/src/include/gh_console.h:50:21: error: macro "putc" requires 2 arguments, but only 1 given
In file included from parse.cpp:27:
/home/qubodup/src/subversion/goblinhack/trunk/src/include/gh_console.h:50: error: variable or field ‘putc’ declared void
make[2]: *** [parse.o] Error 1
make[2]: Leaving directory `/home/qubodup/src/subversion/goblinhack/trunk/src/rooms'
Make failed: make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/qubodup/src/subversion/goblinhack/trunk/src'
Make failed: make: *** [all] Error 2

Discussion

  • goblinhack

    goblinhack - 2013-09-20

    This diff should fi it

    svn diff
    Index: src/include/gh_console.h
    ===================================================================
    --- src/include/gh_console.h (revision 737)
    +++ src/include/gh_console.h (working copy)
    @@ -47,7 +47,7 @@
    void bg(uint8 c);
    void fg(uint8 c);
    void fgbg(uint8, uint8);
    - void putc(char c);
    + void myputc(char c);
    void putc_small(char c);
    void puts_at(string s, gh_point3d at);
    void putf_at(string s, gh_point3d at);
    Index: src/term/console.cpp
    ===================================================================
    --- src/term/console.cpp (revision 737)
    +++ src/term/console.cpp (working copy)
    @@ -355,7 +355,7 @@
    cursor.x++;
    }

    -gh_inline void gh_console::putc (char c)
    +gh_inline void gh_console::myputc (char c)
    {
    const float dx = (float)gh_global::screensize.w / (float)GH_TERM_WIDTH;
    const float dy = (float)gh_global::screensize.h / (float)GH_TERM_HEIGHT;
    @@ -548,7 +548,7 @@
    console.bg(c->bg);

        console.mv(p);
    
    • console.putc(ch);
    • console.myputc(ch);
      }
      }
      }
     
  • goblinhack

    goblinhack - 2013-09-21

    I've moved the latest code to

    git@github.com:goblinhack/goblinhack.git

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.