sensational / sassphp

PHP bindings to libsass - fast, native Sass parsing in PHP!
Other
230 stars 40 forks source link

Installation problem #17

Closed qzminski closed 9 years ago

qzminski commented 9 years ago

I have the following installation problem. Does this library need some specific envrionment or is it something wrong inside it?

In file included from ast.cpp:1:
ast.hpp: In constructor 'Sass::Hashed::Hashed(size_t)':
ast.hpp:209: error: 'class std::unordered_map<Sass::Expression*, Sass::Expression*, std::hash<Sass::Expression*>, std::equal_to<Sass::Expression*>, std::allocator<std::pair<Sass::Expression* const, Sass::Expression*> > >' has no member named 'reserve'
ast.hpp: In member function 'Sass::Hashed& Sass::Hashed::operator+=(Sass::Hashed*)':
ast.hpp:238: error: expected initializer before ':' token
ast.hpp:242: error: could not convert 'Sass::Hashed::reset_duplicate_key()' to 'bool'
ast.hpp:243: error: expected primary-expression before 'return'
ast.hpp:243: error: expected ')' before 'return'
ast.hpp: In member function 'virtual bool Sass::Map::operator==(Sass::Expression&) const':
ast.hpp:806: error: expected initializer before ':' token
ast.hpp:808: error: expected primary-expression before 'return'
ast.hpp:808: error: expected ';' before 'return'
ast.hpp:808: error: expected primary-expression before 'return'
ast.hpp:808: error: expected ')' before 'return'
ast.hpp: In member function 'virtual size_t Sass::Map::hash()':
ast.hpp:821: error: expected initializer before ':' token
ast.hpp:824: error: expected primary-expression before 'return'
ast.hpp:824: error: expected ';' before 'return'
ast.hpp:824: error: expected primary-expression before 'return'
ast.hpp:824: error: expected ')' before 'return'
ast.hpp: In member function 'virtual size_t Sass::Function_Call::hash()':
ast.hpp:1086: error: expected initializer before ':' token
ast.hpp:1089: error: expected primary-expression before 'return'
ast.hpp:1089: error: expected ';' before 'return'
ast.hpp:1089: error: expected primary-expression before 'return'
ast.hpp:1089: error: expected ')' before 'return'
In file included from ast.cpp:1:
ast.hpp: In member function 'virtual size_t Sass::String_Schema::hash()':
ast.hpp:1348: error: expected initializer before ':' token
ast.hpp:1351: error: expected primary-expression before 'return'
ast.hpp:1351: error: expected ';' before 'return'
ast.hpp:1351: error: expected primary-expression before 'return'
ast.hpp:1351: error: expected ')' before 'return'
ast.cpp: In member function 'void Sass::Number::normalize(const std::string&)':
ast.cpp:691: error: expected initializer before ':' token
ast.cpp:863: error: expected primary-expression at end of input
ast.cpp:863: error: expected ';' at end of input
ast.cpp:863: error: expected primary-expression at end of input
ast.cpp:863: error: expected ')' at end of input
ast.cpp:863: error: expected statement at end of input
ast.cpp:863: error: expected '}' at end of input
ast.cpp: At global scope:
ast.cpp:863: error: expected '}' at end of input
pilif commented 9 years ago

please update your GCC or open an issue over at libsass itself. This is not an issue in the PHP bindings.