c - Windows.h and clang (LLVM) -


I am trying to compile a small project that includes windows.h by using the clang compiler. Unfortunately, the quarrel creates some errors which I can not solve. What is the reason for these errors? Does not support all the necessary features, am I missing something?

  included in the c: \ program files \ microsoft sdk \ windows \ v6.0a \ air / oh: 155: file included in the c: \ program files \ microsoft sdk \ windows \ v6 .0A \ include / air ef.h: 177: C: \ Program Files \ Microsoft SDK \ Windows \ v6.0A \ / winnt.h (12857): Warning: Expression Unused [-Use-value] UNREFERENCED_PARAMETER (Callback Atmosphere); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C: \ Program Files \ Microsoft SDKs \ Windows \ V6.0A \ include / winnt.h: 12857: 28: Note: Stable of: UNREFERENCED_PARAMETER (callback environment); ^ ~~~~~~~~~~~~~~ The file contains from C: include \ program files \ Microsoft SDK \ Windows \ v6.0A \ air / ows.h: 156: C: \ Program Files \ Microsoft SDK \ Windows \ v6.0A \ included / winbase.h (2326): Error: invalid operand for binary expression ('longlong' (aka 'double') and 'longonglong'); Old & amp; Value, ~~~ ^ ~~~~~ C: \ Program Files \ Microsoft SDK \ Windows \ v6.0A \ included / winbase.h (2327): Error: Expected ')' Older! = Old); ^ C: \ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ include / winbase.h (2325): Note: While this to match '(') (Interlock Compaq Xbox 64 (Destination, ^ C: \ Programs) Files \ Microsoft \ SDK \ Windows \ v6.0A \ included / winbase.h (2344): Error: Invalid expression for binary expression ('longlong' (aka 'double') and 'long long') Old value, ~~~ ^ ~~~~~ C: \ Program Files \ Microsoft SDK \ Windows \ v6.0A \ included / winbase.h (2345): Error: Expected ')' Old)! = Older; ^ C: \ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ included / winbase.h (2343): Note: While this to match '(') (Interloc compaired exchange 64 (destination, ^ c: \ program Files \ Microsoft \ SDK \ Windows \ v6.0A \ included / winbase.h (2362): Error: Invalid expression for binary expression ('Langlong' (aka 'double') and 'longong') Old ^ value, ~~~ ^ ~~~~~ C: \ Program Files \ Microsoft SDK \ Windows \ v6.0A \ included / winbase.h (2363): Error: Expected ')' old)! = Old); ^ Include in C: \ Program Files \ Microsoft SDK \ Windows \ V6 6.0A / Vimease H (2361): Note: For this '('} match (Interlock Compaq Xbox 64 (Destination, ^ ... and much more) ....  

You might define a false-compatible version of the UNREFERENCED_PARAMETER macro It is necessary that you should help on the way:

In addition to this, it seems that for a long time, It has been defined twice, and you can not do binary arithmetic (and, or, etc.) on the float, it is necessary to ensure that it is typed as a correct integer type.

Depending on how some depends on windows.h, Winbase.h and winnt.h are structured you may be able to create your own wrapper, it defines the right place to make, otherwise, the GCC-compatible of windows.h Try searching the version, and its Please use.

Good luck!


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -