I am trying to convert a program that was originally written for Windows on Borland C++. I am using Kylix 3 and wine libraries and includes to try to make this as simple as possible. Of course, it is not very simple at all. The Kylix compiler gives me errors that I have not seen before against the wine include files winnt.h and some of the kylix include files. Here is a list of the errors:

/usr/local/kylix3/bin/bc++ -t -Od -Q -w -P -Vx -Ve -Tkh30000 -X- -r- -a8 -b- -k -y -v -vi- -c -w-par -w-8027 -w-8026 -I/usr/include:/usr/local/kylix3/include:/usr/local/kylix3/include/vcl:/usr/local/kylix3/include/stlport:/usr/include/qt3:/home/aamfsss/winpcap/Common:/usr/include/wine:/usr/include/wine/windows -DBORLAND:_DEBUG:__stdcall -DNO_STRICT:USEPACKAGES -n. Unit1.cpp
Borland C++ 5.7 Copyright (c) 1987, 2002 Borland
Unit1.cpp:
Error E2015 /usr/include/wine/windows/winnt.h 292: Ambiguity between 'BYTE' and 'System::BYTE'
Error E2238 /usr/include/wine/windows/winnt.h 295: Multiple declaration for 'LONG'

Error E2344 /usr/local/kylix3/include/vcl/sysmac.h 138: Earlier declaration of 'LONG'

Error E2238 /usr/include/wine/windows/winnt.h 365: Multiple declaration for 'HRESULT'

Error E2344 /usr/local/kylix3/include/vcl/sysmac.h 137: Earlier declaration of 'HRESULT'

Error E2015 /usr/include/wine/windows/winnt.h 367: Ambiguity between 'WORD' and 'System::WORD'

Error E2238 /usr/include/wine/windows/winnt.h 372: Multiple declaration for 'HANDLE'

Error E2344 /usr/local/kylix3/include/vcl/Qt.hpp 37: Earlier declaration of 'HANDLE'

Error E2015 /usr/include/wine/windows/winnt.h 477: Ambiguity between 'LPVOID' and 'System::LPVOID'

Error E2015 /usr/include/wine/windows/winnt.h 478: Ambiguity between 'LPVOID' and 'System::LPVOID'

Error E2015 /usr/include/wine/windows/winnt.h 605: Ambiguity between 'BYTE' and 'System::BYTE'

Error E2015 /usr/include/wine/windows/winnt.h 648: Ambiguity between 'BYTE' and 'System::BYTE'

Error E2015 /usr/include/wine/windows/winnt.h 677: Ambiguity between 'WORD' and 'System::WORD'

Error E2015 /usr/include/wine/windows/winnt.h 678: Ambiguity between 'WORD' and 'System::WORD'

Error E2015 /usr/include/wine/windows/winnt.h 681: Ambiguity between 'BYTE' and 'System::BYTE'

Error E2015 /usr/include/wine/windows/winnt.h 682: Ambiguity between 'BYTE' and 'System::BYTE'

Error E2015 /usr/include/wine/windows/winnt.h 683: Ambiguity between 'BYTE' and 'System::BYTE'

Error E2015 /usr/include/wine/windows/winnt.h 684: Ambiguity between 'BYTE' and 'System::BYTE'

Error E2015 /usr/include/wine/windows/winnt.h 1590: Ambiguity between 'WORD' and 'System::WORD'

Error E2015 /usr/include/wine/windows/winnt.h 1591: Ambiguity between 'WORD' and 'System::WORD'

Error E2015 /usr/include/wine/windows/winnt.h 1592: Ambiguity between 'WORD' and 'System::WORD'

Error E2015 /usr/include/wine/windows/winnt.h 1593: Ambiguity between 'WORD' and 'System::WORD'

Error E2015 /usr/include/wine/windows/winnt.h 1594: Ambiguity between 'WORD' and 'System::WORD'

Error E2015 /usr/include/wine/windows/winnt.h 1595: Ambiguity between 'WORD' and 'System::WORD'

Error E2015 /usr/include/wine/windows/winnt.h 1596: Ambiguity between 'WORD' and 'System::WORD'

Error E2228 /usr/include/wine/windows/winnt.h 1596: Too many error or warning messages
*** 26 errors in Compile ***
make: *** [Unit1.o] Error 1

I am sure the error is probably more with Kylix than with wine, but I would not know where to post this other than here. I have googled the errors and found nothing. Has anyone had any luck using Wine and Kylix together? Is it possible, or do I need to dump one or the other?

Thank you for any help you can give.

steiner201