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
相关文章
相关标签/搜索