NO

Author Topic: Using MS standard headers on PellesC  (Read 58275 times)

JohnF

  • Guest
Re: Using MS standard headers on PellesC
« Reply #90 on: April 28, 2014, 08:12:41 am »
Ok.

I seem to be short of two more headers.

00638 mshtmhst_i.c  FAILED
00639 mshtmhst_p.c  FAILED

John

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 1931
Re: Using MS standard headers on PellesC
« Reply #91 on: April 28, 2014, 12:11:18 pm »
Ok.

I seem to be short of two more headers.

00638 mshtmhst_i.c  FAILED
00639 mshtmhst_p.c  FAILED

John

These files definitly are in the list of files to copy (see MS-Headers.lst in the tool zip).
It seems that you have a problem with copy or directories. Could you check please?
Moreover the content of these files is useful fo C++ only, so an empty file should do ...  :(
I'll check to be sure that it's so. In this case I'll change the patch to remove the include of these files.
Anyway I don't understand why your system try to include them under plain C ....  :( Maybe you can cross-check?  :P

JohnF

  • Guest
Re: Using MS standard headers on PellesC
« Reply #92 on: April 28, 2014, 12:21:46 pm »
Ok.

I seem to be short of two more headers.

00638 mshtmhst_i.c  FAILED
00639 mshtmhst_p.c  FAILED

John

These files definitly are in the list of files to copy (see MS-Headers.lst in the tool zip).
It seems that you have a problem with copy or directories. Could you check please?
Moreover the content of these files is useful fo C++ only, so an empty file should do ...  :(
I'll check to be sure that it's so. In this case I'll change the patch to remove the include of these files.
Anyway I don't understand why your system try to include them under plain C ....  :( Maybe you can cross-check?  :P

Yes they are in the list, that's why your report lists them. Those headers are not  anywhere on my drive so I don't understand it.

Anyway, if they are only for C++ remove them.

John


Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 1931
Re: Using MS standard headers on PellesC
« Reply #93 on: April 28, 2014, 12:35:38 pm »
Yes they are in the list, that's why your report lists them. Those headers are not  anywhere on my drive so I don't understand it.

Anyway, if they are only for C++ remove them.

John

These files are in the SDK-7.1 include. Maybe your SDK installation have some fault? ....
I have not understood if the compiler complains for them or if you just found the error in the copy report.
Before removing them I have to be sure that they aren't included anyway ...

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 1931
Re: Using MS standard headers on PellesC
« Reply #94 on: April 28, 2014, 12:50:18 pm »
Sorry these files aren't for C++ only ... :-[
But seems that they are not used unless "scardssp_i.c" that is included by "ScardSsp.h".
Maybe they could be required when compiling something else?
Edit: They should be necessary when creating the OLE/AUTO object, so for normal compiling should not be required, or there is any other use??  :(
For now I'll not remove them ...  :(
« Last Edit: April 28, 2014, 03:26:31 pm by frankie »

JohnF

  • Guest
Re: Using MS standard headers on PellesC
« Reply #95 on: April 28, 2014, 01:36:52 pm »
Ok,

They were listed in your report. The SDK I have is 7.1

John

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 1931
Re: Using MS standard headers on PellesC
« Reply #96 on: April 28, 2014, 03:22:49 pm »
John please can you check if with tool version 1.22 the warnings under X64 disappear?

JohnF

  • Guest
Re: Using MS standard headers on PellesC
« Reply #97 on: April 28, 2014, 07:45:16 pm »
I tried with 1.23 - didn't have any FAILED copied headers this time.

Here are the errors compiling my FindFile app.

Building Dialogs.obj.
B:\PellesC\Include\Win\winnt.h(13074): warning #2018: Undeclared function '__stosb' (did you mean '_stristr'?); assuming 'extern' returning 'int'.
B:\PellesC\Include\Win\winnt.h(14948): warning #2018: Undeclared function '__readgsqword' (did you mean '(no name)'?); assuming 'extern' returning 'int'.
B:\PellesC\Include\Win\winnt.h(14959): warning #2018: Undeclared function '__readgsqword' (did you mean '(no name)'?); assuming 'extern' returning 'int'.
B:\PellesC\Include\Win\winbase.h(2208): warning #2195: Unrecognized intrinsic function: '_InterlockedAnd'.
B:\PellesC\Include\Win\winbase.h(2209): warning #2195: Unrecognized intrinsic function: '_InterlockedOr'.
B:\PellesC\Include\Win\winbase.h(2210): warning #2195: Unrecognized intrinsic function: '_InterlockedXor'.
B:\PellesC\Include\Win\winbase.h(2218): warning #2195: Unrecognized intrinsic function: '_InterlockedAnd64'.
B:\PellesC\Include\Win\winbase.h(2219): warning #2195: Unrecognized intrinsic function: '_InterlockedOr64'.
B:\PellesC\Include\Win\winbase.h(2220): warning #2195: Unrecognized intrinsic function: '_InterlockedXor64'.
B:\PellesC\Include\Win\stralign.h(475): warning #2018: Undeclared function '_wcsicmp' (did you mean 'uaw_wcsicmp'?); assuming 'extern' returning 'int'.
Building Find.obj.
B:\PellesC\Include\Win\winnt.h(13074): warning #2018: Undeclared function '__stosb' (did you mean '__stoul'?); assuming 'extern' returning 'int'.
B:\PellesC\Include\Win\winnt.h(14948): warning #2018: Undeclared function '__readgsqword' (did you mean '__wcstold'?); assuming 'extern' returning 'int'.
B:\PellesC\Include\Win\winnt.h(14959): warning #2018: Undeclared function '__readgsqword' (did you mean '__wcstold'?); assuming 'extern' returning 'int'.
B:\PellesC\Include\Win\winbase.h(2208): warning #2195: Unrecognized intrinsic function: '_InterlockedAnd'.
B:\PellesC\Include\Win\winbase.h(2209): warning #2195: Unrecognized intrinsic function: '_InterlockedOr'.
B:\PellesC\Include\Win\winbase.h(2210): warning #2195: Unrecognized intrinsic function: '_InterlockedXor'.
B:\PellesC\Include\Win\winbase.h(2218): warning #2195: Unrecognized intrinsic function: '_InterlockedAnd64'.
B:\PellesC\Include\Win\winbase.h(2219): warning #2195: Unrecognized intrinsic function: '_InterlockedOr64'.
B:\PellesC\Include\Win\winbase.h(2220): warning #2195: Unrecognized intrinsic function: '_InterlockedXor64'.
Building FindFile.obj.
B:\PellesC\Include\Win\winnt.h(13074): warning #2018: Undeclared function '__stosb' (did you mean '__wctob'?); assuming 'extern' returning 'int'.
B:\PellesC\Include\Win\winnt.h(14948): warning #2018: Undeclared function '__readgsqword' (did you mean '__wcstold'?); assuming 'extern' returning 'int'.
B:\PellesC\Include\Win\winnt.h(14959): warning #2018: Undeclared function '__readgsqword' (did you mean '__wcstold'?); assuming 'extern' returning 'int'.
B:\PellesC\Include\Win\winbase.h(2208): warning #2195: Unrecognized intrinsic function: '_InterlockedAnd'.
B:\PellesC\Include\Win\winbase.h(2209): warning #2195: Unrecognized intrinsic function: '_InterlockedOr'.
B:\PellesC\Include\Win\winbase.h(2210): warning #2195: Unrecognized intrinsic function: '_InterlockedXor'.
B:\PellesC\Include\Win\winbase.h(2218): warning #2195: Unrecognized intrinsic function: '_InterlockedAnd64'.
B:\PellesC\Include\Win\winbase.h(2219): warning #2195: Unrecognized intrinsic function: '_InterlockedOr64'.
B:\PellesC\Include\Win\winbase.h(2220): warning #2195: Unrecognized intrinsic function: '_InterlockedXor64'.
Building FindFileUni64.res.
Building GdipImage.obj.
B:\PellesC\Include\Win\winnt.h(13074): warning #2018: Undeclared function '__stosb' (did you mean '_stristr'?); assuming 'extern' returning 'int'.
B:\PellesC\Include\Win\winnt.h(14948): warning #2018: Undeclared function '__readgsqword' (did you mean '(no name)'?); assuming 'extern' returning 'int'.
B:\PellesC\Include\Win\winnt.h(14959): warning #2018: Undeclared function '__readgsqword' (did you mean '(no name)'?); assuming 'extern' returning 'int'.
B:\PellesC\Include\Win\winbase.h(2208): warning #2195: Unrecognized intrinsic function: '_InterlockedAnd'.
B:\PellesC\Include\Win\winbase.h(2209): warning #2195: Unrecognized intrinsic function: '_InterlockedOr'.
B:\PellesC\Include\Win\winbase.h(2210): warning #2195: Unrecognized intrinsic function: '_InterlockedXor'.
B:\PellesC\Include\Win\winbase.h(2218): warning #2195: Unrecognized intrinsic function: '_InterlockedAnd64'.
B:\PellesC\Include\Win\winbase.h(2219): warning #2195: Unrecognized intrinsic function: '_InterlockedOr64'.
B:\PellesC\Include\Win\winbase.h(2220): warning #2195: Unrecognized intrinsic function: '_InterlockedXor64'.
B:\PellesC\Include\Win\stralign.h(475): warning #2018: Undeclared function '_wcsicmp' (did you mean 'uaw_wcsicmp'?); assuming 'extern' returning 'int'.
Building IDragDrop.obj.
B:\PellesC\Include\Win\winnt.h(13074): warning #2018: Undeclared function '__stosb' (did you mean '_stristr'?); assuming 'extern' returning 'int'.
B:\PellesC\Include\Win\winnt.h(14948): warning #2018: Undeclared function '__readgsqword' (did you mean '(no name)'?); assuming 'extern' returning 'int'.
B:\PellesC\Include\Win\winnt.h(14959): warning #2018: Undeclared function '__readgsqword' (did you mean '(no name)'?); assuming 'extern' returning 'int'.
B:\PellesC\Include\Win\winbase.h(2208): warning #2195: Unrecognized intrinsic function: '_InterlockedAnd'.
B:\PellesC\Include\Win\winbase.h(2209): warning #2195: Unrecognized intrinsic function: '_InterlockedOr'.
B:\PellesC\Include\Win\winbase.h(2210): warning #2195: Unrecognized intrinsic function: '_InterlockedXor'.
B:\PellesC\Include\Win\winbase.h(2218): warning #2195: Unrecognized intrinsic function: '_InterlockedAnd64'.
B:\PellesC\Include\Win\winbase.h(2219): warning #2195: Unrecognized intrinsic function: '_InterlockedOr64'.
B:\PellesC\Include\Win\winbase.h(2220): warning #2195: Unrecognized intrinsic function: '_InterlockedXor64'.
B:\PellesC\Include\Win\stralign.h(475): warning #2018: Undeclared function '_wcsicmp' (did you mean 'uaw_wcsicmp'?); assuming 'extern' returning 'int'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2120: Redeclaration of 'UINT', previously declared at B:\PellesC\Include\Win\windef.h(173); expected 'unsigned int' but found 'int'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2001: Syntax error: expected ';' but found 'SendMessageW'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): warning #2099: Missing type specifier; assuming 'int'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2001: Syntax error: expected ')' but found '('.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2120: Redeclaration of 'SendMessageW', previously declared at B:\PellesC\Include\Win\winuser.h(3241); expected 'long long int __stdcall function(HWND, unsigned int, unsigned long long int, long long int)' but found 'int __cdecl function()'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2001: Syntax error: expected ';' but found ')'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): warning #2099: Missing type specifier; assuming 'int'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2001: Syntax error: expected ')' but found 'integer constant'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2092: Missing identifier.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2001: Syntax error: expected ';' but found 'integer constant'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): warning #2099: Missing type specifier; assuming 'int'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2120: Redeclaration of 'WPARAM', previously declared at B:\PellesC\Include\Win\windef.h(183); expected 'unsigned long long int' but found 'int __fastcall function(int)'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2120: Redeclaration of 'LPARAM', previously declared at B:\PellesC\Include\Win\windef.h(184); expected 'long long int' but found 'int'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2001: Syntax error: expected ';' but found 'integer constant'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1135): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1136): error #2048: Undeclared identifier 'hList' (did you mean 'IACList'?).
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1136): error #2069: Initializer must be constant.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1137): error #2069: Initializer must be constant.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): warning #2099: Missing type specifier; assuming 'int'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): error #2001: Syntax error: expected ')' but found '>='.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): error #2001: Syntax error: expected ';' but found '>='.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): warning #2099: Missing type specifier; assuming 'int'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): error #2001: Syntax error: expected ';' but found '&&'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): warning #2099: Missing type specifier; assuming 'int'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): error #2001: Syntax error: expected ';' but found '<'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): warning #2099: Missing type specifier; assuming 'int'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): error #2001: Syntax error: expected ')' but found '+'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): error #2001: Syntax error: expected ';' but found '+'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): warning #2099: Missing type specifier; assuming 'int'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): error #2001: Syntax error: expected ';' but found ')'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1140): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1141): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1142): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1142): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1143): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1150): error #2051: Cast from 'int' to 'WPARAM' is invalid.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1159): error #2051: Cast from 'int' to 'WPARAM' is invalid.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1178): error #2051: Cast from 'int' to 'WPARAM' is invalid.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1201): error #2051: Cast from 'int' to 'WPARAM' is invalid.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1283): error #2051: Cast from 'int' to 'WPARAM' is invalid.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1344): error #2051: Cast from 'int' to 'WPARAM' is invalid.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1416): error #2051: Cast from 'int' to 'WPARAM' is invalid.
*** Error code: 1 ***
Done.
Build time: 5648ms


John

JohnF

  • Guest
Re: Using MS standard headers on PellesC
« Reply #98 on: April 29, 2014, 07:55:50 am »
Frankie,

32bit FindFile fares much better but as you can see has problems with IDragDrop.c

Building Dialogs.obj.
Building Find.obj.
Building FindFile.obj.
Building FindFileUni32.res.
Building GdipImage.obj.
Building IDragDrop.obj.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2120: Redeclaration of 'UINT', previously declared at B:\PellesC\Include\Win\windef.h(173); expected 'unsigned int' but found 'int'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2001: Syntax error: expected ';' but found 'SendMessageW'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): warning #2099: Missing type specifier; assuming 'int'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2001: Syntax error: expected ')' but found '('.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2120: Redeclaration of 'SendMessageW', previously declared at B:\PellesC\Include\Win\winuser.h(3241); expected 'long int __stdcall function(HWND, unsigned int, unsigned int, long int)' but found 'int __cdecl function()'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2001: Syntax error: expected ';' but found ')'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): warning #2099: Missing type specifier; assuming 'int'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2001: Syntax error: expected ')' but found 'integer constant'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2092: Missing identifier.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2001: Syntax error: expected ';' but found 'integer constant'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): warning #2099: Missing type specifier; assuming 'int'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2120: Redeclaration of 'WPARAM', previously declared at B:\PellesC\Include\Win\windef.h(183); expected 'unsigned int' but found 'int __stdcall function(int)'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2120: Redeclaration of 'LPARAM', previously declared at B:\PellesC\Include\Win\windef.h(184); expected 'long int' but found 'int'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2001: Syntax error: expected ';' but found 'integer constant'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1134): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1135): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1136): error #2048: Undeclared identifier 'hList' (did you mean 'IACList'?).
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1136): error #2069: Initializer must be constant.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1137): error #2069: Initializer must be constant.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): warning #2099: Missing type specifier; assuming 'int'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): error #2001: Syntax error: expected ')' but found '>='.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): error #2001: Syntax error: expected ';' but found '>='.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): warning #2099: Missing type specifier; assuming 'int'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): error #2001: Syntax error: expected ';' but found '&&'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): warning #2099: Missing type specifier; assuming 'int'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): error #2001: Syntax error: expected ';' but found '<'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): warning #2099: Missing type specifier; assuming 'int'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): error #2001: Syntax error: expected ')' but found '+'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): error #2001: Syntax error: expected ';' but found '+'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): warning #2099: Missing type specifier; assuming 'int'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1139): error #2001: Syntax error: expected ';' but found ')'.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1140): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1141): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1142): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1142): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1143): error #2156: Unrecognized declaration.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1150): error #2051: Cast from 'int' to 'WPARAM' is invalid.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1159): error #2051: Cast from 'int' to 'WPARAM' is invalid.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1178): error #2051: Cast from 'int' to 'WPARAM' is invalid.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1201): error #2051: Cast from 'int' to 'WPARAM' is invalid.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1283): error #2051: Cast from 'int' to 'WPARAM' is invalid.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1344): error #2051: Cast from 'int' to 'WPARAM' is invalid.
B:\PellesC\Projects\aProjects22\Findfile\IDragDrop.c(1416): error #2051: Cast from 'int' to 'WPARAM' is invalid.
*** Error code: 1 ***
Done.
Build time: 5336ms


John

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2006
Re: Using MS standard headers on PellesC
« Reply #99 on: April 29, 2014, 08:26:59 am »
John,
In IDragDrop.c replace ListView_IsItemVisible to something like JFListView_IsItemVisible and try again. ListView_IsItemVisible is macro in WSDK headers.
May the source be with you

JohnF

  • Guest
Re: Using MS standard headers on PellesC
« Reply #100 on: April 29, 2014, 09:18:08 am »
John,
In IDragDrop.c replace ListView_IsItemVisible to something like JFListView_IsItemVisible and try again. ListView_IsItemVisible is macro in WSDK headers.

That fixed it, well done!

No errors now on the 32bit

John

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 1931
Re: Using MS standard headers on PellesC
« Reply #101 on: April 29, 2014, 09:29:07 am »
John,
the problem is that in 64bits WinNT.h defines locally all intrinsics that, as stated by standards for C99-C1X, must be in other files defined by the standard itself.  >:(
Not a big issue by itself just need to block the redefinition for PellesC, what I have done, and place the inclusion of standard headers (not done yet). This should be an easy job should I have a 64bits machine at hands ...  >:(
I asked to Timo to make this modification, as he will give me the list I'll update the tool last time (hopefully  :()

JohnF

  • Guest
Re: Using MS standard headers on PellesC
« Reply #102 on: April 29, 2014, 09:41:54 am »
Ok, look forward to it.

John

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 1931
Re: Using MS standard headers on PellesC
« Reply #103 on: April 29, 2014, 01:49:51 pm »
I loaded the version 1.24 (tested simulating an X64 environment...)  :(

JohnF

  • Guest
Re: Using MS standard headers on PellesC
« Reply #104 on: April 29, 2014, 02:02:03 pm »
Using 1.24

Building Dialogs.obj.
B:\PellesC\Include\Win\winbase.h(2122): error #2120: Redeclaration of '_InterlockedIncrement', previously declared at B:\PellesC\Include\intrin.h(210); expected 'long int __cdecl function(volatile long int *)' but found 'long int __fastcall function(volatile long int *)'.
B:\PellesC\Include\Win\winbase.h(2127): error #2120: Redeclaration of '_InterlockedDecrement', previously declared at B:\PellesC\Include\intrin.h(211); expected 'long int __cdecl function(volatile long int *)' but found 'long int __fastcall function(volatile long int *)'.
B:\PellesC\Include\Win\winbase.h(2133): error #2120: Redeclaration of '_InterlockedExchange', previously declared at B:\PellesC\Include\intrin.h(207); expected 'long int __cdecl function(volatile long int *, long int)' but found 'long int __fastcall function(volatile long int *, long int)'.
B:\PellesC\Include\Win\winbase.h(2139): error #2120: Redeclaration of '_InterlockedExchangeAdd', previously declared at B:\PellesC\Include\intrin.h(208); expected 'long int __cdecl function(volatile long int *, long int)' but found 'long int __fastcall function(volatile long int *, long int)'.
B:\PellesC\Include\Win\winbase.h(2146): error #2120: Redeclaration of '_InterlockedCompareExchange', previously declared at B:\PellesC\Include\intrin.h(212); expected 'long int __cdecl function(volatile long int *, long int, long int)' but found 'long int __fastcall function(volatile long int *, long int, long int)'.
B:\PellesC\Include\Win\winbase.h(2153): error #2120: Redeclaration of '_InterlockedCompareExchangePointer', previously declared at B:\PellesC\Include\intrin.h(213); expected 'void * __cdecl function(void * volatile *, void *, void *)' but found 'void * __fastcall function(void * volatile *, void *, void *)'.
B:\PellesC\Include\Win\winbase.h(2159): error #2120: Redeclaration of '_InterlockedExchangePointer', previously declared at B:\PellesC\Include\intrin.h(209); expected 'void * __cdecl function(void * volatile *, void *)' but found 'void * __fastcall function(void * volatile *, void *)'.
B:\PellesC\Include\Win\winbase.h(2182): error #2120: Redeclaration of '_InterlockedIncrement64', previously declared at B:\PellesC\Include\intrin.h(226); expected 'long long int __cdecl function(volatile long long int *)' but found 'long long int __fastcall function(volatile long long int *)'.
B:\PellesC\Include\Win\winbase.h(2187): error #2120: Redeclaration of '_InterlockedDecrement64', previously declared at B:\PellesC\Include\intrin.h(227); expected 'long long int __cdecl function(volatile long long int *)' but found 'long long int __fastcall function(volatile long long int *)'.
B:\PellesC\Include\Win\winbase.h(2193): error #2120: Redeclaration of '_InterlockedExchange64', previously declared at B:\PellesC\Include\intrin.h(224); expected 'long long int __cdecl function(volatile long long int *, long long int)' but found 'long long int __fastcall function(volatile long long int *, long long int)'.
B:\PellesC\Include\Win\winbase.h(2199): error #2120: Redeclaration of '_InterlockedExchangeAdd64', previously declared at B:\PellesC\Include\intrin.h(225); expected 'long long int __cdecl function(volatile long long int *, long long int)' but found 'long long int __fastcall function(volatile long long int *, long long int)'.
B:\PellesC\Include\Win\winbase.h(2206): error #2120: Redeclaration of '_InterlockedCompareExchange64', previously declared at B:\PellesC\Include\intrin.h(228); expected 'long long int __cdecl function(volatile long long int *, long long int, long long int)' but found 'long long int __fastcall function(volatile long long int *, long long int, long long int)'.
*** Error code: 1 ***


John