ubuntu8.04以上编译保护问题

ubuntu8.04版本后,在默认情况下,gcc编译器检测stack安全,可能会出现__stack_check_failed之类的错误。

解决办法:

  在Makefile中添加:CFLAGS += -fno-stack-protector

posted on 2010-08-16 10:59  lambda107  阅读(126)  评论(0编辑  收藏  举报

导航