Windows Kits错误

时间:2014-08-13 15:28:23

标签: c linker makefile declaration

我已经设法编译了一个C程序,现在尝试将其与gcc(使用makefile)链接。但是我收到来自Winddows Kits 8.0的SetupAPI.h和commctrl.h的很多错误。我正在使用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.
编辑:Chnaging到SDK 7摆脱了第三个错误。上面的错误日志会随时更新。

1 个答案:

答案 0 :(得分:0)

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

您从缺失中看到的大部分错误包括sal.h的文件内容。我不知道为什么没有自动包含sal.h。

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