小编Ssu*_* Yu的帖子

GCC中的-D__USE_FIXED_PROTOTYPES__用于什么?

实用C编程,第7章编程过程一书中,有一个makefile:

File: calc1/makefile.gcc
#-----------------------------------------------#
#   Makefile for unix systems       #
#    using a GNU C compiler         #
#-----------------------------------------------#
CC=gcc
CFLAGS=-g -D__USE_FIXED_PROTOTYPES__ -ansi
#
# Compiler flags:
#   -g  -- Enable debugging
#   -Wall   -- Turn on all warnings (not used since it gives away
#           the bug in this program)
#   -D__USE_FIXED_PROTOTYPES__
#       -- Force the compiler to use the correct headers
#   -ansi   -- Don't use GNU extensions.  Stick to ANSI C.

calc1: calc1.c
    $(CC) …
Run Code Online (Sandbox Code Playgroud)

c unix gcc makefile

3
推荐指数
1
解决办法
131
查看次数

标签 统计

c ×1

gcc ×1

makefile ×1

unix ×1