I am trying to fix a linker error the error basically states this when I type make:
g++ -Wall -ansi -c Proj5Aux.cpp
g++ -Wall -ansi -o Proj5 Proj5.cpp /afs/umbc.edu/users/d/a/dana3/pub/CMSC202/p4/KLSocket.o Proj5Aux.o Human.o Computer.o Player.o Boards.o Node.o Square.o Queue.o Exception.o
Proj5Aux.o: In function `Queue<Square>::Enqueue(Square const&)':
Proj5Aux.cpp.gnu.linkonce.t._ZN5QueueI6SquareE7EnqueueERKS0_+0 x24): undefined reference to `Node<Square>::Node(Square const&)'
collect2: ld returned 1 exit status
make: *** [Proj5] Error 1
here is my makefile
If u need to see files as well ask as u can see its about twenty of themCode:COMPILER=g++ CFLAGS= -Wall -ansi PROJECT1=Proj5 PROJECT2=Tourney SOCKET=/afs/umbc.edu/users/d/a/dana3/pub/CMSC202/p4/KLSocket.o $(PROJECT1) : Proj5.cpp $(SOCKET) Proj5Aux.o Boards.o Square.o Node.o Queue.o P\layer.o Human.o Computer.o Exception.o $(COMPILER) $(CFLAGS) -o $(PROJECT1) Proj5.cpp $(SOCKET) Proj5Aux.o Hum\an.o Computer.o Player.o Boards.o Node.o Square.o Queue.o Exception.o Proj5Aux.o : Proj5Aux.cpp Proj5Aux.h $(COMPILER) $(CFLAGS) -c Proj5Aux.cpp Human.o : Human.cpp Human.h $(COMPILER) $(CFLAGS) -c Human.cpp Computer.o : Computer.cpp Computer.h $(COMPILER) $(CFLAGS) -c Computer.cpp Player.o : Player.cpp Player.h $(COMPILER) $(CFLAGS) -c Player.cpp Boards.o : Boards.cpp Boards.h $(COMPILER) $(CFLAGS) -c Boards.cpp Node.o: Node.cpp Node.h $(COMPILER) $(CFLAGS) -c Node.cpp Square.o: Square.cpp Square.h $(COMPILER) $(CFLAGS) -c Square.cpp Queue.o: Queue.cpp Queue.h $(COMPILER) $(CFLAGS) -c Queue.cpp Tourney.o: Tourney.cpp Tourney.h $(COMPILER) $(CFLAGS) -c Tourney.cpp PlayerInfo.o: PlayerInfo.cpp PlayerInfo.h $(COMPILER) $(CFLAGS) -c PlayerInfo.cpp Exception.o: Exception.cpp Exception.h $(COMPILER) $(CFLAGS) -c Exception.cpp



LinkBack URL
About LinkBacks
.gnu.linkonce.t._ZN5QueueI6SquareE7EnqueueERKS0_+0 x24): undefined reference to `Node<Square>::Node(Square const&)'


