Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C Windows工具包错误_C_Linker_Makefile_Declaration - Fatal编程技术网

C Windows工具包错误

C Windows工具包错误,c,linker,makefile,declaration,C,Linker,Makefile,Declaration,我已经设法编译了一个C程序,现在尝试将它与gcc链接(使用makefile)。但是我从SetupAPI.h和commctrl.h中得到了很多错误,它们都来自Winddows工具包8.0。我使用的是SDK 8.0,我将尝试使用7.0并报告结果,可能是这样吗 Description Resource Path Location Type '__in_bcount' was not declared in this scope exampleProg line 2309

我已经设法编译了一个C程序,现在尝试将它与gcc链接(使用makefile)。但是我从SetupAPI.h和commctrl.h中得到了很多错误,它们都来自Winddows工具包8.0。我使用的是SDK 8.0,我将尝试使用7.0并报告结果,可能是这样吗

Description Resource    Path    Location    Type
'__in_bcount' was not declared in this scope    exampleProg     line 2309, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in_ecount' was not declared in this scope    exampleProg     line 2883, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in_ecount' was not declared in this scope    exampleProg     line 2890, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in_ecount' was not declared in this scope    exampleProg     line 2897, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in_ecount' was not declared in this scope    exampleProg     line 2904, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in_opt' was not declared in this scope   exampleProg     line 2599, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in_opt' was not declared in this scope   exampleProg     line 2600, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in_opt' was not declared in this scope   exampleProg     line 2606, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2280, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2286, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2292, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2298, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2304, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2310, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2316, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2322, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2328, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2334, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2340, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2468, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2469, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2475, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2481, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2487, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2493, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2499, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2505, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2521, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2527, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2536, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2548, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2549, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2565, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2571, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2580, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2592, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2593, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2693, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2741, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2742, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2747, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2796, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2845, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2858, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2884, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2891, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2898, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2905, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2920, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2921, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2927, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2928, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2934, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2935, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2941, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2942, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2959, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2960, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2965, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2966, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2981, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2982, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2983, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2988, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2989, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 2990, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 3004, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 3005, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 3017, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 3018, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 3029, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 3030, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 3031, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 873, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 874, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 880, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 881, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 887, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 888, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 894, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__in' was not declared in this scope   exampleProg     line 895, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__inout_bcount' was not declared in this scope exampleProg     line 2279, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout_bcount' was not declared in this scope exampleProg     line 2285, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout_bcount' was not declared in this scope exampleProg     line 2291, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout_bcount' was not declared in this scope exampleProg     line 2297, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout_bcount' was not declared in this scope exampleProg     line 2303, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout_bcount' was not declared in this scope exampleProg     line 2315, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout_bcount' was not declared in this scope exampleProg     line 2321, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout_bcount' was not declared in this scope exampleProg     line 2327, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout_bcount' was not declared in this scope exampleProg     line 2333, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout_bcount' was not declared in this scope exampleProg     line 2339, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout' was not declared in this scope    exampleProg     line 2457, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout' was not declared in this scope    exampleProg     line 2462, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout' was not declared in this scope    exampleProg     line 2467, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout' was not declared in this scope    exampleProg     line 2474, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout' was not declared in this scope    exampleProg     line 2480, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout' was not declared in this scope    exampleProg     line 2486, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout' was not declared in this scope    exampleProg     line 2492, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout' was not declared in this scope    exampleProg     line 2498, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout' was not declared in this scope    exampleProg     line 2504, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout' was not declared in this scope    exampleProg     line 2510, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout' was not declared in this scope    exampleProg     line 2515, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout' was not declared in this scope    exampleProg     line 2520, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout' was not declared in this scope    exampleProg     line 2526, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout' was not declared in this scope    exampleProg     line 2535, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout' was not declared in this scope    exampleProg     line 2547, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout' was not declared in this scope    exampleProg     line 2554, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout' was not declared in this scope    exampleProg     line 2559, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout' was not declared in this scope    exampleProg     line 2564, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout' was not declared in this scope    exampleProg     line 2570, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout' was not declared in this scope    exampleProg     line 2579, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout' was not declared in this scope    exampleProg     line 2591, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout' was not declared in this scope    exampleProg     line 2598, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__inout' was not declared in this scope    exampleProg     line 2605, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__maybenull' does not name a type  exampleProg     line 2116, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__nullterminated' does not name a type exampleProg     line 353, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__nullterminated' does not name a type exampleProg     line 354, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__nullterminated' does not name a type exampleProg     line 355, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__nullterminated' does not name a type exampleProg     line 356, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__nullterminated' does not name a type exampleProg     line 357, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__nullterminated' does not name a type exampleProg     line 358, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__nullterminated' does not name a type exampleProg     line 359, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__nullterminated' does not name a type exampleProg     line 361, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__nullterminated' does not name a type exampleProg     line 362, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__nullterminated' does not name a type exampleProg     line 363, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__nullterminated' does not name a type exampleProg     line 364, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__nullterminated' does not name a type exampleProg     line 421, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__nullterminated' does not name a type exampleProg     line 422, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__nullterminated' does not name a type exampleProg     line 423, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__nullterminated' does not name a type exampleProg     line 424, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__nullterminated' does not name a type exampleProg     line 425, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__nullterminated' does not name a type exampleProg     line 427, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__nullterminated' does not name a type exampleProg     line 428, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__out_ecount_full' was not declared in this scope  exampleProg     line 2882, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__out_ecount_full' was not declared in this scope  exampleProg     line 2889, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__out_ecount_full' was not declared in this scope  exampleProg     line 2896, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__out_ecount_full' was not declared in this scope  exampleProg     line 2903, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__out_ecount_full' was not declared in this scope  exampleProg     line 2919, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__out_ecount_full' was not declared in this scope  exampleProg     line 2926, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__out_ecount_full' was not declared in this scope  exampleProg     line 2933, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__out_ecount_full' was not declared in this scope  exampleProg     line 2940, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__out' was not declared in this scope  exampleProg     line 3006, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__out' was not declared in this scope  exampleProg     line 3019, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__possibly_notnullterminated' does not name a type exampleProg     line 366, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__possibly_notnullterminated' does not name a type exampleProg     line 367, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__possibly_notnullterminated' does not name a type exampleProg     line 368, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__possibly_notnullterminated' does not name a type exampleProg     line 369, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__possibly_notnullterminated' does not name a type exampleProg     line 430, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__possibly_notnullterminated' does not name a type exampleProg     line 431, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'__post' does not name a type   exampleProg     line 1201, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'__post' does not name a type   exampleProg     line 2270, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'_InterlockedAdd' declared as an 'inline' variable  exampleProg     line 2535, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'_InterlockedAdd64' declared as an 'inline' variable    exampleProg     line 2579, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'Count' was not declared in this scope  exampleProg     line 2882, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'Count' was not declared in this scope  exampleProg     line 2883, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'Count' was not declared in this scope  exampleProg     line 2889, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'Count' was not declared in this scope  exampleProg     line 2890, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'Count' was not declared in this scope  exampleProg     line 2896, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'Count' was not declared in this scope  exampleProg     line 2897, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'Count' was not declared in this scope  exampleProg     line 2903, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'Count' was not declared in this scope  exampleProg     line 2904, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'Count' was not declared in this scope  exampleProg     line 2919, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'Count' was not declared in this scope  exampleProg     line 2926, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'Count' was not declared in this scope  exampleProg     line 2933, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'Count' was not declared in this scope  exampleProg     line 2940, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'EXCEPTION_ROUTINE' does not name a type    exampleProg     line 1212, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'LPCSTR' does not name a type   exampleProg     line 472, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'LPSTR' does not name a type    exampleProg     line 471, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h   C/C++ Problem
'MultiplyExtract128' declared as an 'inline' variable   exampleProg     line 3029, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'Offset' was not declared in this scope exampleProg     line 2279, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'Offset' was not declared in this scope exampleProg     line 2285, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'Offset' was not declared in this scope exampleProg     line 2291, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'Offset' was not declared in this scope exampleProg     line 2297, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'Offset' was not declared in this scope exampleProg     line 2303, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'Offset' was not declared in this scope exampleProg     line 2309, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'Offset' was not declared in this scope exampleProg     line 2315, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem
'Offset' was not declared in this scope exampleProg     line 2321, external location: C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\winnt.h  C/C++ Problem   
etc.

编辑:对SDK 7的更改消除了三分之一的错误。上面的错误日志会相应地更新。

您不能直接使用gcc编译Windows工具包标题。只能使用提供的nmake/msbuild工具链

从丢失的com中看到的大多数错误都包括sal.h的文件内容。我不知道为什么sal.h不能自动包含在内


请注意,有一个gcc发行版,其中包含一个对gcc友好的windows标头版本,名为mingw。

我正在使用mingw。我明天会尝试将sal.h添加到文件中并报告。奇怪的是,这个程序应该按原样编译-我只想为Java添加包装函数。如果你使用的是mingw,你必须使用附带的windows头文件,不能使用windows sdk头文件。是的,我知道了。问题是,我之所以包含Windows SDK,是因为我遇到了错误。我想问题在于编写Makefile。我对这个特定的案例(尤其是其他案例)有困难:第一.c:#include#include#include“./../include/libusbcom/usbcom.h”第二.c:#include#include#include“./../include/libusbcom/usbcom.h”第三.h:/fourth:#include#include#include#include#include#fourth.h:#ifdef LIBFOURTH#导出#定义第四个API#declspec(dllexport)#否则#定义第四个API#declspec?我的一次尝试是这样的:fourth.dll:fourth.o$(LINK\u CMD)fourth.o:second.c fourth.h third.h$(COMP\u CMD)-DLIBUSBCOM\u EXPORTS-D\u WINDOWS first.dll:first.o$(LINK\u CMD)first.o:first.c fourth.h third.h$(COMP\u CMD)-DLIBUSBCOM_EXPORTS-D_WINDOWS和第二个窗口是第一行的相同示例:fourth.dll:fourth.o first.o$(LINK_CMD)我想最好用mingw重新问这个新问题。也许有人能帮助你。(对不起,我不能…)