Undefined Reference Compiler Error

后端 未结 2 1709
灰色年华
灰色年华 2021-01-07 01:00

I think I\'m getting close, but I\'m having this error I\'ve been banging my head against the wall on for hours. I\'m missing something stupid, and I\'ve gone character by c

2条回答
  •  梦谈多话
    2021-01-07 01:45

    You aren't linking translator.o with your application.

    g++ -g -c translator.cpp
    

    followed by

    g++ -g -Wall main.cpp translator.o -o Pear
    

提交回复
热议问题