Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #37087
| From | James Kuyper <jameskuyper@verizon.net> |
|---|---|
| Newsgroups | comp.lang.c++, comp.lang.c |
| Subject | Re: SQL filesortcc question |
| Date | 2015-07-15 17:15 -0400 |
| Organization | Self |
| Message-ID | <55A6CD57.5090905@verizon.net> (permalink) |
| References | <mo6gfj$gt8$1@ns2.nl2k.ab.ca> |
Cross-posted to 2 groups.
On 07/15/2015 04:40 PM, The Doctor wrote: > All right to essentials on this one. > > Using g++ 3.2.3 , Gmake 4.01 and Cmake 2.6.4 > > I get > > > Script started on Wed Jul 15 06:45:13 2015 > doctor.nl2k.ab.ca//usr/source/mysql-5.6.25$ gmake > [ 0%] Built target INFO_BIN > ... > Scanning dependencies of target sql > [ 47%] Building CXX object sql/CMakeFiles/sql.dir/sql_yacc.cc.o > [ 47%] Building CXX object sql/CMakeFiles/sql.dir/abstract_query_plan.cc.o > [ 47%] Building CXX object sql/CMakeFiles/sql.dir/datadict.cc.o > [ 47%] Building CXX object sql/CMakeFiles/sql.dir/debug_sync.cc.o > [ 47%] Building CXX object sql/CMakeFiles/sql.dir/derror.cc.o > [ 47%] Building CXX object sql/CMakeFiles/sql.dir/des_key_file.cc.o > [ 47%] Building CXX object sql/CMakeFiles/sql.dir/discover.cc.o > [ 48%] Building CXX object sql/CMakeFiles/sql.dir/field.cc.o > /usr/source/mysql-5.6.25/sql/field.cc: In member function `virtual void > Field_string::make_sort_key(uchar*, unsigned int)': > /usr/source/mysql-5.6.25/sql/field.cc:6886: warning: unused variable `uint tmp' > [ 48%] Building CXX object sql/CMakeFiles/sql.dir/field_conv.cc.o > [ 48%] Building CXX object sql/CMakeFiles/sql.dir/filesort.cc.o > [ 48%] Building CXX object sql/CMakeFiles/sql.dir/filesort_utils.cc.o > /usr/source/mysql-5.6.25/sql/filesort_utils.cc: In function `size_t > <unnamed>::try_reserve(std::pair<type*, ptrdiff_t>*, int)': > /usr/source/mysql-5.6.25/sql/filesort_utils.cc:178: parse error before `>' > token You're getting a parse error inside a C++ template function. More specifically, it's a parse error inside the template portion of the C++ syntax for calling a templated function. Why did you think cross-posting to comp.lang.c would be any help? I know a fair amount of C++, more than the average person on comp.lang.c - but I can't figure out what's causing the parse error - so you need a better C++ expert than me. It might be an interaction between the code you've actually given us, and the user-defined header files that you didn't give us - so I'd recommend posting the contents of those files as well. But post it only to comp.lang.C++ > /usr/source/mysql-5.6.25/sql/filesort_utils.cc: In member function `void > Filesort_buffer::sort_buffer(const Sort_param*, unsigned int)': > /usr/source/mysql-5.6.25/sql/filesort_utils.cc:202: `return_temporary_buffer' > undeclared in namespace `std' My copy of the C++2011 standard says that std::get_temporary_buffer<>() and std::return_temporary_buffer<>() are both declared in <memory>, which is not one of the headers you #included directly. Is it #included indirectly through one of the other headers? If not, that would explain the above error message. If that's the problem, your use of get_temporary_buffer would probably also have generated such an error message, if it hadn't been for the parse failure.
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
SQL filesortcc question doctor@doctor.nl2k.ab.ca (The Doctor) - 2015-07-15 20:40 +0000
Re: SQL filesortcc question Paavo Helde <myfirstname@osa.pri.ee> - 2015-07-15 16:08 -0500
Re: SQL filesortcc question James Kuyper <jameskuyper@verizon.net> - 2015-07-15 17:15 -0400
Re: SQL filesortcc question doctor@doctor.nl2k.ab.ca (The Doctor) - 2015-07-15 23:22 +0000
Re: SQL filesortcc question Ian Collins <ian-news@hotmail.com> - 2015-07-16 09:55 +1200
Re: SQL filesortcc question doctor@doctor.nl2k.ab.ca (The Doctor) - 2015-07-15 23:23 +0000
Re: SQL filesortcc question Bo Persson <bop@gmb.dk> - 2015-07-16 10:58 +0200
Re: SQL filesortcc question doctor@doctor.nl2k.ab.ca (The Doctor) - 2015-07-16 20:15 +0000
Re: SQL filesortcc question Ian Collins <ian-news@hotmail.com> - 2015-07-17 09:24 +1200
Re: SQL filesortcc question doctor@doctor.nl2k.ab.ca (The Doctor) - 2015-07-16 23:54 +0000
csiph-web