[Cpp-Programming] Need help with C++ problem for School
https://docs.google.com/file/d/0BzWoZRS-5iFnUF9RNWFPaDg1TVU/edit?usp=sharing
I need help with this problem. I cannot figure out why certain variables are not linking ( not defined yet? What?! it's defined in the abstract class!)
I even mashed everything into one convenient file... still get the same errors. This is an example from Malik's C++ 6th Edition. I'm using Bloodshed DevC++.
What am I doing wrong? Help would be appreciated.
-Charlie
Error log below
Compiler: Default compiler
Building Makefile: "D:\1. ACC_FILES\COSC2420_AdvC++\Chapter 16-17-18 Computer Programming Assignments\CPP17_ex_1\Makefile.win"
Executing make...
make.exe -f "D:\1. ACC_FILES\COSC2420_AdvC++\Chapter 16-17-18 Computer Programming Assignments\CPP17_ex_1\Makefile.win" all
g++.exe -c testVideoStore.cpp -o testVideoStore.o -I"D:/2-Bloodshead/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"D:/2-Bloodshead/Dev-Cpp/include/c++/3.4.2/backward" -I"D:/2-Bloodshead/Dev-Cpp/include/c++/3.4.2/mingw32" -I"D:/2-Bloodshead/Dev-Cpp/include/c++/3.4.2" -I"D:/2-Bloodshead/Dev-Cpp/include" -I"D:/1. ACC_FILES/COSC2420_AdvC++/Chapter 16-17-18 Computer Programming Assignments/CPP17_ex_1/videoType" -I"D:/1. ACC_FILES/COSC2420_AdvC++/Chapter 16-17-18 Computer Programming Assignments/CPP17_ex_1/linkedList" -I"D:/1. ACC_FILES/COSC2420_AdvC++/Chapter 16-17-18 Computer Programming Assignments/CPP17_ex_1/videoListType"
In file included from D:/1. ACC_FILES/COSC2420_AdvC++/Chapter 16-17-18 Computer Programming Assignments/CPP17_ex_1/videoListType/videoListType.h:5,
from testVideoStore.cpp:5:
D:/1. ACC_FILES/COSC2420_AdvC++/Chapter 16-17-18 Computer Programming Assignments/CPP17_ex_1/linkedList/unorderedLinkedList.h: In member function `bool unorderedLinkedList<Type>::search(const Type&) const':
D:/1. ACC_FILES/COSC2420_AdvC++/Chapter 16-17-18 Computer Programming Assignments/CPP17_ex_1/linkedList/unorderedLinkedList.h:49: error: `first' undeclared (first use this function)
D:/1. ACC_FILES/COSC2420_AdvC++/Chapter 16-17-18 Computer Programming Assignments/CPP17_ex_1/linkedList/unorderedLinkedList.h:49: error: (Each undeclared identifier is reported only once for each function it appears in.)
D:/1. ACC_FILES/COSC2420_AdvC++/Chapter 16-17-18 Computer Programming Assignments/CPP17_ex_1/linkedList/unorderedLinkedList.h: In member function `void unorderedLinkedList<Type>::insertFirst(const Type&)':
D:/1. ACC_FILES/COSC2420_AdvC++/Chapter 16-17-18 Computer Programming Assignments/CPP17_ex_1/linkedList/unorderedLinkedList.h:69: error: `first' undeclared (first use this function)
D:/1. ACC_FILES/COSC2420_AdvC++/Chapter 16-17-18 Computer Programming Assignments/CPP17_ex_1/linkedList/unorderedLinkedList.h:72: error: no post-increment operator for type
D:/1. ACC_FILES/COSC2420_AdvC++/Chapter 16-17-18 Computer Programming Assignments/CPP17_ex_1/linkedList/unorderedLinkedList.h:74: error: `last' undeclared (first use this function)
D:/1. ACC_FILES/COSC2420_AdvC++/Chapter 16-17-18 Computer Programming Assignments/CPP17_ex_1/linkedList/unorderedLinkedList.h: In member function `void unorderedLinkedList<Type>::insertLast(const Type&)':
D:/1. ACC_FILES/COSC2420_AdvC++/Chapter 16-17-18 Computer Programming Assignments/CPP17_ex_1/linkedList/unorderedLinkedList.h:90: error: `first' undeclared (first use this function)
D:/1. ACC_FILES/COSC2420_AdvC++/Chapter 16-17-18 Computer Programming Assignments/CPP17_ex_1/linkedList/unorderedLinkedList.h:94: error: `last' undeclared (first use this function)
D:/1. ACC_FILES/COSC2420_AdvC++/Chapter 16-17-18 Computer Programming Assignments/CPP17_ex_1/linkedList/unorderedLinkedList.h:95: error: no post-increment operator for type
D:/1. ACC_FILES/COSC2420_AdvC++/Chapter 16-17-18 Computer Programming Assignments/CPP17_ex_1/linkedList/unorderedLinkedList.h:102: error: no post-increment operator for type
D:/1. ACC_FILES/COSC2420_AdvC++/Chapter 16-17-18 Computer Programming Assignments/CPP17_ex_1/linkedList/unorderedLinkedList.h: In member function `void unorderedLinkedList<Type>::deleteNode(const Type&)':
D:/1. ACC_FILES/COSC2420_AdvC++/Chapter 16-17-18 Computer Programming Assignments/CPP17_ex_1/linkedList/unorderedLinkedList.h:114: error: `first' undeclared (first use this function)
D:/1. ACC_FILES/COSC2420_AdvC++/Chapter 16-17-18 Computer Programming Assignments/CPP17_ex_1/linkedList/unorderedLinkedList.h:123: error: no post-decrement operator for type
D:/1. ACC_FILES/COSC2420_AdvC++/Chapter 16-17-18 Computer Programming Assignments/CPP17_ex_1/linkedList/unorderedLinkedList.h:125: error: `last' undeclared (first use this function)
D:/1. ACC_FILES/COSC2420_AdvC++/Chapter 16-17-18 Computer Programming Assignments/CPP17_ex_1/linkedList/unorderedLinkedList.h:150: error: no post-decrement operator for type
make.exe: *** [testVideoStore.o] Error 1
Execution terminated
--
You received this message because you are subscribed to the Google Groups "C++ Programming" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cpp-programming+unsubscribe@googlegroups.com.
To post to this group, send email to cpp-programming@googlegroups.com.
Visit this group at http://groups.google.com/group/cpp-programming?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
<< Home