C++ Undefined Reference To

0 votes
asked Aug 11, 2019 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:
https://www.onlinegdb.com/edit/HJak15sXr

1 Answer

0 votes
answered Dec 8, 2019 by (420 points)
can you send the source code so that I can help you out
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.
...