Question:
My code for c++ is not working …it seems to be a makefile error.
I have linked my replit.
Also i am stuggling to output to my “output2.txt” file;
Current behavior:
This is what the terminal shows:
sh -c make -s
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: /tmp/hw1-20ad8d.o: in function `main':
/home/runner/Hw1/./hw1.cpp:103: undefined reference to `void LinkedList::remove<int>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int)'
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: /home/runner/Hw1/./hw1.cpp:98: undefined reference to `void LinkedList::remove<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:10: main] Error 1
exit status 2
Desired behavior
Repl link:
https://replit.com/@oliviaMott/Hw1#hw1.cpp
code snippet