Skip to content

Instantly share code, notes, and snippets.

@audiodude
Created September 24, 2009 12:52
Show Gist options
  • Save audiodude/192702 to your computer and use it in GitHub Desktop.
Save audiodude/192702 to your computer and use it in GitHub Desktop.
g++ -I. -I/opt/local/lib/ruby/1.8/i686-darwin9 -I/opt/local/lib/ruby/1.8/i686-darwin9 -I. -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O2 -fno-common -pipe -fno-common -c board_tanbo.cpp
g++ -I. -I/opt/local/lib/ruby/1.8/i686-darwin9 -I/opt/local/lib/ruby/1.8/i686-darwin9 -I. -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O2 -fno-common -pipe -fno-common -c point_tanbo.cpp
board_tanbo.h: In static member function ‘static bool BoardTanbo::in_bounds(const PointTanbo*)’:
board_tanbo.h:53: error: invalid use of undefined type ‘const struct PointTanbo’
board_tanbo.h:44: error: forward declaration of ‘const struct PointTanbo’
board_tanbo.h:53: error: invalid use of undefined type ‘const struct PointTanbo’
board_tanbo.h:44: error: forward declaration of ‘const struct PointTanbo’
board_tanbo.h:53: error: invalid use of undefined type ‘const struct PointTanbo’
board_tanbo.h:44: error: forward declaration of ‘const struct PointTanbo’
board_tanbo.h:53: error: invalid use of undefined type ‘const struct PointTanbo’
board_tanbo.h:44: error: forward declaration of ‘const struct PointTanbo’
make: *** [point_tanbo.o] Error 1
http://github.com/audiodude/Ruby-Tanbo/tree/master/ai/ruby_uct/
Fixed with: http://github.com/audiodude/Ruby-Tanbo/commit/56961d06bb926232f8019a85a870ab2b12e438f4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment