Complie Error

C、C++和Java语言
回复
SearchDream
帖子: 1
注册时间: 2006-08-25 21:48
送出感谢: 0
接收感谢: 0

Complie Error

#1

帖子 SearchDream » 2006-09-10 18:47

I use gcc to test the program as follow:
#include <stdio.h>

int main()
{
printf("HelloWorld!");
return 0;
}

and the following error :

/tmp/ccMCxeZ0.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld 返回 1

but with g++ it is OK , anyone can help me ?
头像
ulixer
帖子: 231
注册时间: 2006-03-02 23:51
送出感谢: 0
接收感谢: 1 次

#2

帖子 ulixer » 2006-09-12 20:11

how did you comile it, the command?
xphenix
帖子: 35
注册时间: 2006-05-04 15:52
送出感谢: 0
接收感谢: 0

#3

帖子 xphenix » 2006-09-12 22:54

Both are fine!!!
头像
feeling
帖子: 175
注册时间: 2006-04-29 20:10
来自: 北京·昌平
送出感谢: 0
接收感谢: 0
联系:

#4

帖子 feeling » 2006-10-27 9:43

please tell me your source file name && your compiler command
人生若只如初见,何事秋风悲画扇?
回复

回到 “C/C++/Java”