linux下編譯C++文件(undefined reference to.....解決辦法)

在編寫窗口通信的程序中,設計了一個類serial.cpp,是專門操做串口的。 爲了測試它,又寫了一個測試函數test_main.cpp 。 編譯時:  g++ -o main test_main.cpp  結果總是出錯: /tmp/ccWdHekq.o: In function `main': test_serial.cpp:(.text+0x6a): undefined reference to
相關文章
相關標籤/搜索