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
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);
}
}
}
I've moved the latest code to
git@github.com:goblinhack/goblinhack.git