c语言编译器连接错误怎么办,C语言编译器出错

C语言编译器报错

C语言编译器报错及其解决

编译器: TDM-GCC 4.7.1 32-bit

执行 gcc.exe...

gcc.exe "C:\Users\Administrator\Desktop\test1\2045.c" -o "C:\Users\Administrator\Desktop\test1\2045.exe" -m32 -g3 -I"F:\software(软件安装包)\Dev-cpp\MinGW64\x86_64-w64-mingw32\include" -L"F:\software(软件安装包)\Dev-cpp\MinGW64\x86_64-w64-mingw32\lib32" -static-libgcc -m32 -g3

In file included from f:\software(软件安装包)\dev-cpp\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/stddef.h:7:0,

from f:\software(软件安装包)\dev-cpp\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/include/stddef.h:1,

from D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/stdio.h:26,

from C:\Users\Administrator\Desktop\test1\2045.c:1:

f:\software(软件安装包)\dev-cpp\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/crtdefs.h:26:1: error: unknown type name 'size_t'

In file included from f:\software(软件安装包)\dev-cpp\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/stddef.h:7:0,

from f:\software(软件安装包)\dev-cpp\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/include/stddef.h:1,

from D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/stdio.h:26,

from C:\Users\Administrator\Desktop\test1\2045.c:1:

f:\software(软件安装包)\dev-cpp\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/crtdefs.h:183:5: error: unknown type name 'wchar_t'

In file included from f:\software(软件安装包)\dev-cpp\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/include/stddef.h:1:0,

from D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/stdio.h:26,

from C:\Users\Administrator\Desktop\test1\2045.c:1:

f:\software(软件安装包)\dev-cpp\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/stddef.h:20:19: error: expected ',' or ';' before '_set_errno'

f:\software(软件安装包)\dev-cpp\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/stddef.h:21:19: error: expected ',' or ';' before '_get_errno'

f:\software(软件安装包)\dev-cpp\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/stddef.h:26:36: error: expected ',' or ';' before '__threadhandle'

f:\software(软件安装包)\dev-cpp\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/stddef.h:218:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'

In file included from C:\Users\Administrator\Desktop\test1\2045.c:1:0:

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/stdio.h:191:65: error: unknown type name 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/stdio.h:202:55: error: unknown type name 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/stdio.h:206:56: error: unknown type name 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/stdio.h:216:46: error: unknown type name 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/stdio.h:217:48: error: unknown type name 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/stdio.h:297:40: error: expected ',' or ';' before 'fread'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/stdio.h:298:40: error: expected ',' or ';' before 'fwrite'

In file included from C:\Users\Administrator\Desktop\test1\2045.c:1:0:

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/stdio.h:446:59: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/stdio.h:450:60: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/stdio.h:480:52: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/stdio.h:482:25: error: expected declaration specifiers or '...' before 'size_t'

In file included from C:\Users\Administrator\Desktop\test1\2045.c:2:0:

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:36:65: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:37:72: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:38:68: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:39:68: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:40:59: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:46:40: error: expected ',' or ';' before 'strcspn'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:49:40: error: expected ',' or ';' before 'strlen'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:50:68: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:51:72: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:52:68: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:55:40: error: expected ',' or ';' before 'strspn'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:58:40: error: expected ',' or ';' before 'strxfrm'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:65:74: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:66:74: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:72:74: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:73:61: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:77:65: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:80:74: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:81:75: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:90:73: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:91:72: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:101:73: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:102:84: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:104:54: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:106:60: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:111:64: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:127:40: error: expected ',' or ';' before 'wcscspn'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:129:40: error: expected ',' or ';' before 'wcslen'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:130:77: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:131:77: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:132:76: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:135:40: error: expected ',' or ';' before 'wcsspn'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:138:40: error: expected ',' or ';' before 'wcsxfrm'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:152:80: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:153:71: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:159:80: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:160:82: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:177:79: error: expected declaration specifiers or '...' before 'size_t'

D:\SoftwareDeveloping\eclipse_cpp\MinGW\include/string.h:178:70: error: expected declaration specifiers or '...' before 'size_t'

C:\Users\Administrator\Desktop\test1\2045.c: In function 'mian':

C:\Users\Administrator\Desktop\test1\2045.c:7:3: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]

执行结束

悲剧啊main竟然写成了mian 。但是编译却不会直接报错,报了一些莫名其妙的东西出来。

IDE的好处增加开发效率

不好之处增强了开发人员对其依赖。

说明本文为原创,转载请注明出处。

Authorskywolf

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值