---
title: "Gcc注意的地方"
author: "Tveiker"
date: "2012-08-27T17:57:44Z"
tags: []
categories: ["非技术"]
slug: "gcc"
draft: false
lastmod: "2012-08-27T17:57:44Z"
id: 1664313
url: "https://tviker.iteye.com/blog/1664313"
---

1.当写一个函数时，函数名与内建函数重名时，加上编译选项 -fno-builtin.非要强制使用内建函数 加修饰 _builtin_

2.当出现“undefine reference _stack_chk_fail_”时可取消栈保护。加上编译选项
  -fno-stack-protector