读书人

C++编译时的有关问题

发布时间: 2012-08-30 09:55:54 作者: rapoo

C++编译时的问题

问题1:
g++ threads/platform/pthreads/Implementation.cpp -o threads/platform/pads/Implementation
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/crt1.o: In function `_star
(.text+0x18): undefined reference to `main'

makefile 在编译该文件的时候可能漏掉了.o

问题2:
undefined reference to `vtable for

?

出现上面问题可能是因为还有未实现的虚函数或在.h。

?

?

读书人网 >C++

热点推荐