rbSFML icon indicating copy to clipboard operation
rbSFML copied to clipboard

Unable to compile

Open tomlukeywood opened this issue 7 years ago • 1 comments

I have the latest version of SFML installed, ruby, git and rake yet when i try and compile with rake i get this output: ./ext/rbsfml/base.cpp:33:14: error: ‘rb_cFixnum’ was not declared in this scope Value Fixnum(rb_cFixnum); ^ rake aborted! Command failed with status (1): [g++ -std=c++11 -I/usr/local/include/ruby...] /tmp/rbSFML/Rakefile:132:in block in compile_o' /tmp/rbSFML/Rakefile:128:in compile_o' /tmp/rbSFML/Rakefile:216:in `block in <top (required)>' Tasks: TOP => default => rbsfml (See full trace by running task with --trace)

Dose anyone know what could be going wrong?

tomlukeywood avatar Feb 28 '18 14:02 tomlukeywood

Same here on gentoo with media-libs/libsfml-2.5.1:0/2.5

Compiling ./ext/rbsfml/base.cpp In file included from ./ext/rbsfml/value.hpp:147, from ./ext/rbsfml/base.hpp:26, from ./ext/rbsfml/base.cpp:21: ./ext/rbsfml/value.inc: In member function ‘ReturnType rb::Value::call(Args ...)’: ./ext/rbsfml/value.inc:51:93: error: expected primary-expression before ‘>’ token VALUE returnValue = rb_funcall(myValue, sym, sizeof...(args), (Value::create(args).to<VALUE>())...); ^ ./ext/rbsfml/value.inc:51:95: error: expected primary-expression before ‘)’ token VALUE returnValue = rb_funcall(myValue, sym, sizeof...(args), (Value::create(args).to<VALUE>())...); ^ ./ext/rbsfml/value.inc: In member function ‘void rb::Value::setVar(ValueType)’: ./ext/rbsfml/value.inc:59:57: error: expected primary-expression before ‘>’ token rb_ivar_set(myValue, sym, Value::create(value).to<VALUE>()); ^ ./ext/rbsfml/value.inc:59:59: error: expected primary-expression before ‘)’ token rb_ivar_set(myValue, sym, Value::create(value).to<VALUE>()); ^ ./ext/rbsfml/base.cpp: At global scope: ./ext/rbsfml/base.cpp:33:14: error: ‘rb_cFixnum’ was not declared in this scope Value Fixnum(rb_cFixnum); ^~~~~~~~~~ ./ext/rbsfml/base.cpp:33:14: note: suggested alternative: ‘Fixnum’ Value Fixnum(rb_cFixnum); ^~~~~~~~~~ Fixnum rake aborted! Command failed with status (1): [x86_64-pc-linux-gnu-g++ -std=c++11 -I/us...] /usr/local/src/rbSFML/Rakefile:132:in block in compile_o' /usr/local/src/rbSFML/Rakefile:128:in compile_o' /usr/local/src/rbSFML/Rakefile:216:in `block in <top (required)>' Tasks: TOP => default => rbsfml (See full trace by running task with --trace)

dpblnt avatar Nov 26 '19 18:11 dpblnt