-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests compile error #3
Comments
Can you try with a new version of g++? When I compile the tests with g++ 4.6, I get the errors that you're seeing. It seems to work with g++ 4.7 through 4.9, though. |
I think we just need to change the using declarations to typedefs, since Thanks, On Wed, Jun 18, 2014 at 10:17 AM, Michael Kaminsky <[email protected]
|
Thanks. regards From: Michael Kaminsky [[email protected]] Can you try with a new version of g++? When I compile the tests with g++ 4.6, I get the errors that you're seeing. It seems to work with g++ 4.7 through 4.9, though. — DISCLAIMER: The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error. Further, this e-mail may contain viruses and all reasonable precaution to minimize the risk arising there from is taken by OnMobile. OnMobile is not liable for any damage sustained by you as a result of any virus in this e-mail. All applicable virus checks should be carried out by you before opening this e-mail or any attachment thereto. |
root@srinidhi-laptop:/home/srinidhi/msearch/libcuckoo/tests# make
g++ -DHAVE_CONFIG_H -I. -I.. -I.. -O4 -DNDEBUG -std=c++0x -Wall -MT insert_throughput.o -MD -MP -MF .deps/insert_throughput.Tpo -c -o insert_throughput.o insert_throughput.cc
insert_throughput.cc:53:11: error: expected nested-name-specifier before ‘KType’
insert_throughput.cc:53:11: error: using-declaration for non-member at class scope
insert_throughput.cc:53:17: error: expected ‘;’ before ‘=’ token
insert_throughput.cc:53:17: error: expected unqualified-id before ‘=’ token
insert_throughput.cc:95:17: error: ‘KType’ was not declared in this scope
insert_throughput.cc:95:22: error: template argument 1 is invalid
insert_throughput.cc:95:22: error: template argument 2 is invalid
insert_throughput.cc: In constructor ‘InsertEnvironment::InsertEnvironment()’:
insert_throughput.cc:66:15: error: invalid types ‘int[int]’ for array subscript
insert_throughput.cc:69:19: error: invalid types ‘int[size_t {aka unsigned int}]’ for array subscript
insert_throughput.cc:69:35: error: invalid types ‘int[const size_t {aka const unsigned int}]’ for array subscript
insert_throughput.cc:70:25: error: invalid types ‘int[const size_t {aka const unsigned int}]’ for array subscript
insert_throughput.cc:70:41: error: ‘KType’ was not declared in this scope
insert_throughput.cc:78:48: error: ‘KType’ was not declared in this scope
insert_throughput.cc:79:39: error: request for member ‘begin’ in ‘((InsertEnvironment)this)->InsertEnvironment::keys’, which is of non-class type ‘int’
insert_throughput.cc:80:39: error: request for member ‘begin’ in ‘((InsertEnvironment)this)->InsertEnvironment::keys’, which is of non-class type ‘int’
insert_throughput.cc: In function ‘void InsertThroughputTest(InsertEnvironment)’:
insert_throughput.cc:102:11: error: expected nested-name-specifier before ‘KType’
insert_throughput.cc:102:11: error: ‘KType’ has not been declared
insert_throughput.cc:102:17: error: expected ‘;’ before ‘=’ token
insert_throughput.cc:102:17: error: expected primary-expression before ‘=’ token
insert_throughput.cc:102:39: error: expected ‘(’ before ‘;’ token
insert_throughput.cc:108:44: error: ‘KType’ was not declared in this scope
insert_throughput.cc: In function ‘void InsertThroughputTest(InsertEnvironment) [with T = cuckoohash_mapstd::basic_string<char, unsigned int>]’:
insert_throughput.cc:152:33: instantiated from here
insert_throughput.cc:108:9: error: request for member ‘begin’ in ‘env->InsertEnvironment<cuckoohash_map<std::basic_string, unsigned int> >::keys’, which is of non-class type ‘int’
insert_throughput.cc:108:9: error: request for member ‘begin’ in ‘env->InsertEnvironment<cuckoohash_map<std::basic_string, unsigned int> >::keys’, which is of non-class type ‘int’
insert_throughput.cc: In function ‘void InsertThroughputTest(InsertEnvironment) [with T = cuckoohash_map<unsigned int, unsigned int>]’:
insert_throughput.cc:156:33: instantiated from here
insert_throughput.cc:108:9: error: request for member ‘begin’ in ‘env->InsertEnvironment<cuckoohash_map<unsigned int, unsigned int> >::keys’, which is of non-class type ‘int’
insert_throughput.cc:108:9: error: request for member ‘begin’ in ‘env->InsertEnvironment<cuckoohash_map<unsigned int, unsigned int> >::keys’, which is of non-class type ‘int’
make: ** [insert_throughput.o] Error 1
The text was updated successfully, but these errors were encountered: