warning: ISO C forbids an empty translation unit [-pedantic]

来源:互联网 发布:动物探测仪软件 编辑:程序博客网 时间:2024/06/07 05:21

root@Ubuntu32:/home/zhangbin/codeStore/testCODE/testMeServerRTSP/mework/meserver/meserver# make



gcc -pedantic -Wall -Wextra -march=native -ggdb3 -o testmeserver config.h



config.h:12:0: warning: ISO C forbids an empty translation unit [-pedantic]


ISO 认为这个config.h文件是空的。



这样的写法,会导致这个问题么??


#ifndef TEST_CONFIG_H
#define TEST_CONFIG_H

#endif

http://stackoverflow.com/questions/15907816/eclipse-fails-to-compile-c-project-when-using-a-flags

原创粉丝点击