Record Detail

Compile Error

prepare (1/4): 
finished

cmake (2/4): 
-- The C compiler identification is Clang 6.0.0
-- The CXX compiler identification is Clang 6.0.0
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Configuring done
-- Generating done
-- Build files have been written to: /out/build
finished

make (3/4): 
Scanning dependencies of target lemondb
[  3%] Building CXX object CMakeFiles/lemondb.dir/main.cpp.o
[  7%] Building CXX object CMakeFiles/lemondb.dir/db/Database.cpp.o
[ 10%] Building CXX object CMakeFiles/lemondb.dir/db/Table.cpp.o
[ 14%] Building CXX object CMakeFiles/lemondb.dir/query/Query.cpp.o
[ 17%] Building CXX object CMakeFiles/lemondb.dir/query/QueryParser.cpp.o
[ 21%] Building CXX object CMakeFiles/lemondb.dir/query/QueryResult.cpp.o
[ 25%] Building CXX object CMakeFiles/lemondb.dir/query/QueryBuilders.cpp.o
[ 28%] Building CXX object CMakeFiles/lemondb.dir/query/management/LoadTableQuery.cpp.o
In file included from /in/query/QueryBuilders.cpp:13:
/in/query/management/PrintTableQuery.h:12:22: error: expected ';' at end of declaration list
  op_type type = NONE : public : using Query::Query;
                     ^
[ 32%] Building CXX object CMakeFiles/lemondb.dir/query/management/DropTableQuery.cpp.o
In file included from /in/query/QueryBuilders.cpp:5:
In file included from /in/query/QueryBuilders.h:8:
In file included from /in/query/../db/Table.h:9:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/memory:80:
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/unique_ptr.h:821:34: error: no matching constructor for initialization of 'PrintTableQuery'
    { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
                                 ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/query/QueryBuilders.cpp:84:25: note: in instantiation of function template specialization 'std::make_unique<PrintTableQuery, std::__cxx11::basic_string<char> &>' requested here
            return std::make_unique<PrintTableQuery>(query.token[1]);
                        ^
/in/query/management/PrintTableQuery.h:10:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'std::__cxx11::basic_string<char>' to 'const PrintTableQuery' for 1st argument
class PrintTableQuery : public Query {
      ^
/in/query/management/PrintTableQuery.h:10:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'std::__cxx11::basic_string<char>' to 'PrintTableQuery' for 1st argument
/in/query/management/PrintTableQuery.h:10:7: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
2 errors generated.
CMakeFiles/lemondb.dir/build.make:206: recipe for target 'CMakeFiles/lemondb.dir/query/QueryBuilders.cpp.o' failed
make[2]: *** [CMakeFiles/lemondb.dir/query/QueryBuilders.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/lemondb.dir/all' failed
make[1]: *** [CMakeFiles/lemondb.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

build failed

Information

Submit By
Type
Submission
Homework
Project 2
Language
CMake
Submit At
2021-11-21 20:23:59
Judged At
2021-11-21 20:23:59
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes