C++ Undefined Reference To

0 votes
asked Aug 11 by (120 points)

There's a lot of other junk going around my code related to the rest of the project, but what I'm struggling with is the code for the hangman minigame.

I'm new to coding and open to any suggestions on my program, but I'm mostly interested in fixing this bug. I cannot for the life of me figure out what this is, and am pretty sure that it's something simple that I'm too much of an idiot to see.

The error message:

/tmp/ccxoZJvp.o: In function `main':
/home/main.cpp:184: undefined reference to `letterFill(char, std::string, std::string&)'
collect2: error: ld returned 1 exit status
The code for the program itself:

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.