Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

C++ Undefined Reference To

0 votes
asked Aug 11, 2019 by Slipy Duck (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:

1 Answer

0 votes
answered Dec 8, 2019 by Donzy Botwe (440 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.