I’m trying to complete the UFO project in the C++ courseline. I’m finding that nothing I add to the header/function file compiles correctly, not even the display_misses() function that comes pre-written with the workspace. Any function I try to call from the file produces the same error:
/tmp/ccp5dsi9.o: In function
main': ufo.cpp:(.text+0x5): undefined reference togreet()’
collect2: error: ld returned 1 exit status
When I put the function in the body of ufo.cpp, it executes normally, but not if I move it to ufo_functions.cpp. I really can’t figure out what’s going wrong here.