首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

C++编译时的有关问题

2012-08-30 
C++编译时的问题问题1:g++threads/platform/pthreads/Implementation.cpp-o threads/platform/pads/Implem

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。

?

?

热点排行