errors in function_equal.hpp?
Hi folks. I use some library which use boost in my project. I am not familiar with c++ and boost. Compilation of my project shows me the next: function_equal.hpp:15: error: expected nested-name-specifier before numeric constant function_equal.hpp:15: error: expected `>' before numeric constant function_equal.hpp:16: error: expected ‘,’ or ‘...’ before numeric constant function_equal.hpp:16: error: ISO C++ forbids declaration of ‘parameter’ with no type function_equal.hpp: In function ‘bool boost::function_equal_impl(const F&, int)’: function_equal.hpp:17: error: ‘g’ was not declared in this scope function_equal.hpp: At global scope: function_equal.hpp:22: error: expected nested-name-specifier before numeric constant function_equal.hpp:22: error: expected `>' before numeric constant function_equal.hpp:23: error: expected ‘,’ or ‘...’ before numeric constant function_equal.hpp:23: error: ISO C++ forbids declaration of ‘parameter’ with no type function_equal.hpp: In function ‘bool boost::function_equal(const F&, int)’: function_equal.hpp:24: error: ‘g’ was not declared in this scope I cannot identify really if it is a problem of the boost, or the libraries which I use or... Who can comment these errors? Thanx a lot.
AMDG worldeb@ukr.net wrote:
I use some library which use boost in my project. I am not familiar with c++ and boost. Compilation of my project shows me the next:
function_equal.hpp:15: error: expected nested-name-specifier before numeric constant function_equal.hpp:15: error: expected `>' before numeric constant function_equal.hpp:16: error: expected ‘,’ or ‘...’ before numeric constant function_equal.hpp:16: error: ISO C++ forbids declaration of ‘parameter’ with no type function_equal.hpp: In function ‘bool boost::function_equal_impl(const F&, int)’: function_equal.hpp:17: error: ‘g’ was not declared in this scope function_equal.hpp: At global scope: function_equal.hpp:22: error: expected nested-name-specifier before numeric constant function_equal.hpp:22: error: expected `>' before numeric constant function_equal.hpp:23: error: expected ‘,’ or ‘...’ before numeric constant function_equal.hpp:23: error: ISO C++ forbids declaration of ‘parameter’ with no type function_equal.hpp: In function ‘bool boost::function_equal(const F&, int)’: function_equal.hpp:24: error: ‘g’ was not declared in this scope
I cannot identify really if it is a problem of the boost, or the libraries which I use or...
Who can comment these errors?
It sounds like G is defined as a macro. Whatever code is doing this is wrong. It is certainly not Boost. You can check this with #ifdef G #error Oops, G is a macro #endif In Christ, Steven Watanabe
participants (2)
-
Steven Watanabe
-
worldeb@ukr.net