`
yangwei0915
  • 浏览: 460303 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论

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。

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics