Advertisement
Guest User

Untitled

a guest
Jul 30th, 2014
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 16.07 KB | None | 0 0
  1. "/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE=/usr/lib/qt4/bin/qmake SUBPROJECTS= .build-conf
  2. make[1]: Entering directory '/home/jarrah/Documents/Dropbox/C++/TOC++'
  3. /usr/lib/qt4/bin/qmake VPATH=. -o qttmp-Debug.mk nbproject/qt-Debug.pro
  4. mv -f qttmp-Debug.mk nbproject/qt-Debug.mk
  5. "/usr/bin/make" -f nbproject/qt-Debug.mk dist/Debug/GNU-Linux-x86/TOC__
  6. make[2]: Entering directory '/home/jarrah/Documents/Dropbox/C++/TOC++'
  7. g++ -c -pipe -std=c++11 -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -Inbproject -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Inbproject -I. -o build/Debug/GNU-Linux-x86/ProductDatabase.o src/ProductDatabase.cpp
  8. In file included from src/ProductDatabase.cpp:10:0:
  9. src/Product.cpp:35:1: error: prototype for ‘Product::Product()’ does not match any in class ‘Product’
  10.  Product::Product()
  11.  ^
  12. src/Product.cpp:10:7: error: candidates are: Product::Product(Product&&)
  13.  class Product {
  14.        ^
  15. src/Product.cpp:10:7: error:                 Product::Product(const Product&)
  16. src/Product.cpp:16:2: error:                 Product::Product(std::string, long int, long int)
  17.   Product(std::string, long, long);
  18.   ^
  19. src/ProductDatabase.cpp: In constructor ‘ProductDatabase::ProductDatabase()’:
  20. src/ProductDatabase.cpp:51:34: error: no matching function for call to ‘Product::Product()
  21.  ProductDatabase::ProductDatabase()
  22.                                   ^
  23. src/ProductDatabase.cpp:51:34: note: candidates are:
  24. In file included from src/ProductDatabase.cpp:10:0:
  25. src/Product.cpp:41:1: note: Product::Product(std::string, long int, long int)
  26.  Product::Product(std::string extName, long extProductPrice, long extBarCode)
  27.  ^
  28. src/Product.cpp:41:1: note:   candidate expects 3 arguments, 0 provided
  29. src/Product.cpp:10:7: note: Product::Product(const Product&)
  30.  class Product {
  31.        ^
  32. src/Product.cpp:10:7: note:   candidate expects 1 argument, 0 provided
  33. src/Product.cpp:10:7: note: Product::Product(Product&&)
  34. src/Product.cpp:10:7: note:   candidate expects 1 argument, 0 provided
  35. src/ProductDatabase.cpp:53:30: error: no matching function for call to ‘Product::Product()
  36.   allProducts = new Product[47];
  37.                               ^
  38. src/ProductDatabase.cpp:53:30: note: candidates are:
  39. In file included from src/ProductDatabase.cpp:10:0:
  40. src/Product.cpp:41:1: note: Product::Product(std::string, long int, long int)
  41.  Product::Product(std::string extName, long extProductPrice, long extBarCode)
  42.  ^
  43. src/Product.cpp:41:1: note:   candidate expects 3 arguments, 0 provided
  44. src/Product.cpp:10:7: note: Product::Product(const Product&)
  45.  class Product {
  46.        ^
  47. src/Product.cpp:10:7: note:   candidate expects 1 argument, 0 provided
  48. src/Product.cpp:10:7: note: Product::Product(Product&&)
  49. src/Product.cpp:10:7: note:   candidate expects 1 argument, 0 provided
  50. src/ProductDatabase.cpp:53:14: error: no match foroperator=’ (operand types are ‘std::vector<Product>’ and ‘Product*)
  51.   allProducts = new Product[47];
  52.               ^
  53. src/ProductDatabase.cpp:53:14: note: candidates are:
  54. In file included from /usr/include/c++/4.9.1/vector:69:0,
  55.                  from src/ProductDatabase.cpp:9:
  56. /usr/include/c++/4.9.1/bits/vector.tcc:167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = Product; _Alloc = std::allocator<Product>]
  57.      vector<_Tp, _Alloc>::
  58.      ^
  59. /usr/include/c++/4.9.1/bits/vector.tcc:167:5: note:   no known conversion for argument 1 from ‘Product*’ to ‘const std::vector<Product>&
  60. In file included from /usr/include/c++/4.9.1/vector:64:0,
  61.                  from src/ProductDatabase.cpp:9:
  62. /usr/include/c++/4.9.1/bits/stl_vector.h:448:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = Product; _Alloc = std::allocator<Product>]
  63.        operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
  64.        ^
  65. /usr/include/c++/4.9.1/bits/stl_vector.h:448:7: note:   no known conversion for argument 1 from ‘Product*’ to ‘std::vector<Product>&&
  66. /usr/include/c++/4.9.1/bits/stl_vector.h:470:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = Product; _Alloc = std::allocator<Product>]
  67.        operator=(initializer_list<value_type> __l)
  68.        ^
  69. /usr/include/c++/4.9.1/bits/stl_vector.h:470:7: note:   no known conversion for argument 1 from ‘Product*’ to ‘std::initializer_list<Product>
  70. src/ProductDatabase.cpp: In member function ‘int ProductDatabase::setDatabaseProduct(int, std::string, long int, long int)’:
  71. src/ProductDatabase.cpp:61:28: error: no match foroperator=’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<Product> >::value_type {aka Product}’ and ‘Product*)
  72.    allProducts[logicalSize] = new Product(name, price, barCode);
  73.                             ^
  74. src/ProductDatabase.cpp:61:28: note: candidates are:
  75. In file included from src/ProductDatabase.cpp:10:0:
  76. src/Product.cpp:10:7: note: Product& Product::operator=(const Product&)
  77.  class Product {
  78.        ^
  79. src/Product.cpp:10:7: note:   no known conversion for argument 1 from ‘Product*’ to ‘const Product&
  80. src/Product.cpp:10:7: note: Product& Product::operator=(Product&&)
  81. src/Product.cpp:10:7: note:   no known conversion for argument 1 from ‘Product*’ to ‘Product&&
  82. src/ProductDatabase.cpp:67:50: error: no matching function for call to ‘ProductDatabase::resizeDatabase(bool, std::vector<Product>*)
  83.    allProducts = resizeDatabase(true, &allProducts);
  84.                                                   ^
  85. src/ProductDatabase.cpp:67:50: note: candidates are:
  86. src/ProductDatabase.cpp:44:7: note: void ProductDatabase::resizeDatabase(bool)
  87.   void resizeDatabase(bool);
  88.        ^
  89. src/ProductDatabase.cpp:44:7: note:   candidate expects 1 argument, 2 provided
  90. src/ProductDatabase.cpp:45:23: note: std::vector<Product> ProductDatabase::resizeDatabase(bool, std::vector<Product>)
  91.   std::vector<Product> resizeDatabase(bool, std::vector<Product>);
  92.                        ^
  93. src/ProductDatabase.cpp:45:23: note:   no known conversion for argument 2 from ‘std::vector<Product>*’ to ‘std::vector<Product>
  94. src/ProductDatabase.cpp: At global scope:
  95. src/ProductDatabase.cpp:57:45: warning: unused parameter ‘productNo’ [-Wunused-parameter]
  96.  int ProductDatabase::setDatabaseProduct(int productNo, std::string name, long price, long barCode)
  97.                                              ^
  98. src/ProductDatabase.cpp: In member function ‘std::string ProductDatabase::getDatabase(int)’:
  99. src/ProductDatabase.cpp:76:21: error: no match for ‘operator!=’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<Product> >::value_type {aka Product}’ and ‘char’)
  100.    if(allProducts[i] != '\0') {
  101.                      ^
  102. src/ProductDatabase.cpp:80:28: error: base operand of ‘->’ has non-pointer type ‘__gnu_cxx::__alloc_traits<std::allocator<Product> >::value_type {aka Product}
  103.     output += allProducts[i]->getData();
  104.                             ^
  105. src/ProductDatabase.cpp: In member function ‘int ProductDatabase::delProduct(int)’:
  106. src/ProductDatabase.cpp:105:52: error: no matching function for call to ‘ProductDatabase::resizeDatabase(bool, std::vector<Product>*)
  107.     allProducts = resizeDatabase(false, &allProducts);
  108.                                                     ^
  109. src/ProductDatabase.cpp:105:52: note: candidates are:
  110. src/ProductDatabase.cpp:44:7: note: void ProductDatabase::resizeDatabase(bool)
  111.   void resizeDatabase(bool);
  112.        ^
  113. src/ProductDatabase.cpp:44:7: note:   candidate expects 1 argument, 2 provided
  114. src/ProductDatabase.cpp:45:23: note: std::vector<Product> ProductDatabase::resizeDatabase(bool, std::vector<Product>)
  115.   std::vector<Product> resizeDatabase(bool, std::vector<Product>);
  116.                        ^
  117. src/ProductDatabase.cpp:45:23: note:   no known conversion for argument 2 from ‘std::vector<Product>*’ to ‘std::vector<Product>
  118. src/ProductDatabase.cpp: In member function ‘std::string* ProductDatabase::getUserNames()’:
  119. src/ProductDatabase.cpp:124:35: error: expected primary-expression before ‘[’ token
  120.   std::string* output = std::string[logicalSize];
  121.                                    ^
  122. src/ProductDatabase.cpp: In member function ‘bool ProductDatabase::productExists(std::string, long int)’:
  123. src/ProductDatabase.cpp:144:21: error: no match for ‘operator!=’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<Product> >::value_type {aka Product}’ and ‘char’)
  124.    if(allProducts[i] != '\0' && allProducts[i].getName() == extProductName && allProducts[i].getBarCode == extBarCode) {
  125.                      ^
  126. src/ProductDatabase.cpp:144:107: error: invalid use of member function (did you forget the ‘()’ ?)
  127.    if(allProducts[i] != '\0' && allProducts[i].getName() == extProductName && allProducts[i].getBarCode == extBarCode) {
  128.                                                                                                            ^
  129. src/ProductDatabase.cpp: In member function ‘bool ProductDatabase::productExists(long int)’:
  130. src/ProductDatabase.cpp:156:21: error: no match for ‘operator!=’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<Product> >::value_type {aka Product}’ and ‘char’)
  131.    if(allProducts[i] != '\0' && allProducts[i].getBarCode() == extBarCode && allProducts[i].canBuy()) {
  132.                      ^
  133. src/ProductDatabase.cpp:156:92: error: ‘__gnu_cxx::__alloc_traits<std::allocator<Product> >::value_type’ has no member named ‘canBuy’
  134.    if(allProducts[i] != '\0' && allProducts[i].getBarCode() == extBarCode && allProducts[i].canBuy()) {
  135.                                                                                             ^
  136. src/ProductDatabase.cpp: In member function ‘std::vector<Product> ProductDatabase::resizeDatabase(bool, std::vector<Product>)’:
  137. src/ProductDatabase.cpp:170:41: error: could not convert ‘resizing.std::vector<_Tp, _Alloc>::resize<Product, std::allocator<Product> >(((std::vector<Product>::size_type)((ProductDatabase*)this)->ProductDatabase::allProductsSize))’ from ‘void’ to ‘std::vector<Product>
  138.    return resizing.resize(allProductsSize);
  139.                                          ^
  140. src/ProductDatabase.cpp:174:41: error: could not convert ‘resizing.std::vector<_Tp, _Alloc>::resize<Product, std::allocator<Product> >(((std::vector<Product>::size_type)((ProductDatabase*)this)->ProductDatabase::allProductsSize))’ from ‘void’ to ‘std::vector<Product>
  141.    return resizing.resize(allProductsSize);
  142.                                          ^
  143. src/ProductDatabase.cpp: In member function ‘int ProductDatabase::partition(int, int, bool (ProductDatabase::*)(Product*, Product*, bool))’:
  144. src/ProductDatabase.cpp:187:10: error: no matching function for call to ‘Product::Product()
  145.   Product temp;
  146.           ^
  147. src/ProductDatabase.cpp:187:10: note: candidates are:
  148. In file included from src/ProductDatabase.cpp:10:0:
  149. src/Product.cpp:41:1: note: Product::Product(std::string, long int, long int)
  150.  Product::Product(std::string extName, long extProductPrice, long extBarCode)
  151.  ^
  152. src/Product.cpp:41:1: note:   candidate expects 3 arguments, 0 provided
  153. src/Product.cpp:10:7: note: Product::Product(const Product&)
  154.  class Product {
  155.        ^
  156. src/Product.cpp:10:7: note:   candidate expects 1 argument, 0 provided
  157. src/Product.cpp:10:7: note: Product::Product(Product&&)
  158. src/Product.cpp:10:7: note:   candidate expects 1 argument, 0 provided
  159. src/ProductDatabase.cpp:190:45: error: must use ‘.*’ or ‘->*’ to call pointer-to-member function intest (...)’, e.g. ‘(... ->* test) (...)
  160.    while(test(allProducts[left], pivotElement) && left + 1 < max) {
  161.                                              ^
  162. src/ProductDatabase.cpp:193:46: error: must use ‘.*’ or ‘->*’ to call pointer-to-member function intest (...)’, e.g. ‘(... ->* test) (...)
  163.    while(test(allProducts[right], pivotElement) && right-1 > 0) {
  164.                                               ^
  165. src/ProductDatabase.cpp: In member function ‘int ProductDatabase::writeOutDatabase(std::string)’:
  166. src/ProductDatabase.cpp:261:29: error: variable ‘std::ofstream outfile’ has initializer but incomplete type
  167.   std::ofstream outfile (path);
  168.                              ^
  169. src/ProductDatabase.cpp: In member function ‘int ProductDatabase::adminWriteOutDatabase(std::string)’:
  170. src/ProductDatabase.cpp:284:29: error: variable ‘std::ofstream outfile’ has initializer but incomplete type
  171.   std::ofstream outfile (path);
  172.                              ^
  173. src/ProductDatabase.cpp:294:54: error: expected primary-expression before ‘<<’ token
  174.    outfile << "The total for this bill is: " + total; << '\n';
  175.                                                       ^
  176. src/ProductDatabase.cpp: In member function ‘int ProductDatabase::readDatabase(std::string)’:
  177. src/ProductDatabase.cpp:312:28: error: variable ‘std::ifstream inFile’ has initializer but incomplete type
  178.   std::ifstream inFile (path);
  179.                             ^
  180. /usr/include/c++/4.9.1/bits/stl_construct.h: In instantiation of ‘void std::_Construct(_T1*, _Args&& ...) [with _T1 = Product; _Args = {}]’:
  181. /usr/include/c++/4.9.1/bits/stl_uninitialized.h:515:43:   required from ‘static void std::__uninitialized_default_n_1<_TrivialValueType>::__uninit_default_n(_ForwardIterator, _Size) [with _ForwardIterator = Product*; _Size = long unsigned int; bool _TrivialValueType = false]
  182. /usr/include/c++/4.9.1/bits/stl_uninitialized.h:570:33:   required from ‘void std::__uninitialized_default_n(_ForwardIterator, _Size) [with _ForwardIterator = Product*; _Size = long unsigned int]
  183. /usr/include/c++/4.9.1/bits/stl_uninitialized.h:631:50:   required from ‘void std::__uninitialized_default_n_a(_ForwardIterator, _Size, std::allocator<_Tp>&) [with _ForwardIterator = Product*; _Size = long unsigned int; _Tp = Product]
  184. /usr/include/c++/4.9.1/bits/vector.tcc:549:39:   required from ‘void std::vector<_Tp, _Alloc>::_M_default_append(std::vector<_Tp, _Alloc>::size_type) [with _Tp = Product; _Alloc = std::allocator<Product>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]
  185. /usr/include/c++/4.9.1/bits/stl_vector.h:676:41:   required from ‘void std::vector<_Tp, _Alloc>::resize(std::vector<_Tp, _Alloc>::size_type) [with _Tp = Product; _Alloc = std::allocator<Product>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]
  186. src/ProductDatabase.cpp:170:41:   required from here
  187. /usr/include/c++/4.9.1/bits/stl_construct.h:75:7: error: no matching function for call to ‘Product::Product()
  188.      { ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
  189.        ^
  190. /usr/include/c++/4.9.1/bits/stl_construct.h:75:7: note: candidates are:
  191. In file included from src/ProductDatabase.cpp:10:0:
  192. src/Product.cpp:41:1: note: Product::Product(std::string, long int, long int)
  193.  Product::Product(std::string extName, long extProductPrice, long extBarCode)
  194.  ^
  195. src/Product.cpp:41:1: note:   candidate expects 3 arguments, 0 provided
  196. src/Product.cpp:10:7: note: Product::Product(const Product&)
  197.  class Product {
  198.        ^
  199. src/Product.cpp:10:7: note:   candidate expects 1 argument, 0 provided
  200. src/Product.cpp:10:7: note: Product::Product(Product&&)
  201. src/Product.cpp:10:7: note:   candidate expects 1 argument, 0 provided
  202. src/ProductDatabase.cpp: In member function ‘std::vector<Product> ProductDatabase::resizeDatabase(bool, std::vector<Product>)’:
  203. src/ProductDatabase.cpp:180:1: warning: control reaches end of non-void function [-Wreturn-type]
  204.  }
  205.  ^
  206. nbproject/qt-Debug.mk:215: recipe for target 'build/Debug/GNU-Linux-x86/ProductDatabase.o' failed
  207. make[2]: *** [build/Debug/GNU-Linux-x86/ProductDatabase.o] Error 1
  208. make[2]: Leaving directory '/home/jarrah/Documents/Dropbox/C++/TOC++'
  209. nbproject/Makefile-Debug.mk:65: recipe for target '.build-conf' failed
  210. make[1]: *** [.build-conf] Error 2
  211. make[1]: Leaving directory '/home/jarrah/Documents/Dropbox/C++/TOC++'
  212. nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
  213. make: *** [.build-impl] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement