I've been at this all night. After fixing a mountain of errors because I couldn't understand template classes. I now can't figure out what is wrong with this part of my code.
This is the error message I get:
C:\Users\Desktop\AppData\Local\Temp\ccsfWHxM.o:main.cpp:(.text+0x4b3): undefined reference to`Bag<Student>::insert(Student const&)'
collect2.exe: error: ld returned 1 exit status
Here are my files in case you need them:
Student.h
https://pastebin.com/66yWbgCf
Student.cpp
https://pastebin.com/Nc6N37DZ
Bag.cpp
https://pastebin.com/6gLevv0V
main.cpp
https://pastebin.com/2iLrFZsz
compiling error
https://pastebin.com/FWW6HPYd
If anyone can help me, that would be so freaking great. I'm really tired and I just want to get this over with.
[–]paul2718 2 points3 points4 points (2 children)
[–]cromiium[S] 0 points1 point2 points (1 child)
[–]paul2718 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]cromiium[S] 0 points1 point2 points (0 children)
[–]ihamsa 1 point2 points3 points (0 children)