Am 21.06.2010 09:54, schrieb Zhang Xiaofei:
Hi Mikhail, Carsten and all,

I got a number of errors about windows SDK headers when I followed the
compiler's errors to replace the types in tools/source/fsys/comdep.cxx and
it's headers. I cannot find the cause in OOo code and would appreciate if
you can give me some advice, thanks in advance!
Hi Felix,

Could you please tell us what changes you made when you encountered that problem? It could be that Windows headers are included which need other Windows headers. At least BOOL ist defined by the Windows header (windows.h) and shouldn't be an unknown identifier. But this could also be related to changes you did. Your job is to exchange all types in OpenOffice.org headers which conflict with Windows types, e.g. BOOL in tools/inc/tools/solar.h and Windows.h.

Regards,
Carsten


Best Regards,
Felix.

###############################################################################
mkout -- version: 1.8
Making:    all_fsys.dpslo
Making:    all_fsys.dpobj
Compiling: tools/source/fsys/wldcrd.cxx
Compiling: tools/source/fsys/fstat.cxx
Compiling: tools/source/fsys/comdep.cxx
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(889) : error C2146:
syntax error : missing";"(before identifier "fRuntimeKeyAvail")
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(889) : error C4430:
missing type specifier - assumed int。Note: C++ does not support default-int
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(889) : error C4430:
missing type specifier - assumed int。Note: C++ does not support default-int
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(890) : error C2146:
syntax error : missing";"(before identifier "fLicVerified")
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(890) : error C4430:
missing type specifier - assumed int。Note: C++ does not support default-int
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(890) : error C4430:
missing type specifier - assumed int。Note: C++ does not support default-int
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(1374) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(1495) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(1510) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(1653) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(2293) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(2397) : error C2061:
syntax error : identifier"BYTE"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(2410) : error C2061:
syntax error : identifier"BYTE"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(2450) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(2578) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(2815) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(2818) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(2821) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(2824) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(2827) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(2830) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(2833) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(2836) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(3170) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(3173) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(3179) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(3407) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(3410) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(3416) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(4087) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(4091) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(4283) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(4288) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(4300) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(4304) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(4978) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(5258) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(5288) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(5467) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(5974) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(6500) : error C2061:
syntax error : identifier"BYTE"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(6506) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\ocidl.h(6512) : error C2061:
syntax error : identifier"BYTE"
d:\env\microsoft sdks\windows\v6.1\include\docobj.h(414) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\docobj.h(417) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\docobj.h(863) : error C2146:
syntax error : missing";"(before identifier "fOddPages")
d:\env\microsoft sdks\windows\v6.1\include\docobj.h(863) : error C4430:
missing type specifier - assumed int。Note: C++ does not support default-int
d:\env\microsoft sdks\windows\v6.1\include\docobj.h(863) : error C4430:
missing type specifier - assumed int。Note: C++ does not support default-int
d:\env\microsoft sdks\windows\v6.1\include\docobj.h(864) : error C2146:
syntax error : missing";"(before identifier "fEvenPages")
d:\env\microsoft sdks\windows\v6.1\include\docobj.h(864) : error C4430:
missing type specifier - assumed int。Note: C++ does not support default-int
d:\env\microsoft sdks\windows\v6.1\include\docobj.h(864) : error C4430:
missing type specifier - assumed int。Note: C++ does not support default-int
d:\env\microsoft sdks\windows\v6.1\include\docobj.h(1497) : error C2061:
syntax error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\exdisp.h(3834) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\exdisp.h(3837) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\exdisp.h(3855) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\exdisp.h(3858) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\exdisp.h(3861) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\exdisp.h(3864) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\exdisp.h(3867) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shldisp.h(6554) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shldisp.h(7002) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shldisp.h(7005) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shldisp.h(7011) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shtypes.h(107) : error C2146: syntax
error : missing";"(before identifier "abID")
d:/Env/MICROS~1/Windows/v6.1/include\shtypes.h(107) : error C4430: missing
type specifier - assumed int。Note: C++ does not support default-int
d:/Env/MICROS~1/Windows/v6.1/include\shtypes.h(107) : error C4430: missing
type specifier - assumed int。Note: C++ does not support default-int
d:\env\microsoft sdks\windows\v6.1\include\structuredquery.h(384) : error
C2061: syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\structuredquery.h(394) : error
C2061: syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\structuredquery.h(538) : error
C2061: syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\structuredquery.h(544) : error
C2061: syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\structuredquery.h(555) : error
C2061: syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\structuredquery.h(1072) : error
C2061: syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\structuredquery.h(1079) : error
C2061: syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\structuredquery.h(1638) : error
C2061: syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\structuredquery.h(2301) : error
C2061: syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\propsys.h(1709) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\propsys.h(3401) : error C2061:
syntax error : identifier"BOOL"
d:\env\microsoft sdks\windows\v6.1\include\propsys.h(3412) : error C2061:
syntax error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(2513) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(2657) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(4262) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(6930) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(7010) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(7369) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(7962) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(9488) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(10942) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(12676) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(12679) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(13020) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(14274) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(14282) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(14944) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(15145) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(21409) : error C2146: syntax
error : missing";"(before identifier "rgb")
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(21409) : error C4430:
missing type specifier - assumed int。Note: C++ does not support default-int
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(21409) : error C4430:
missing type specifier - assumed int。Note: C++ does not support default-int
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(23201) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(24545) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(24551) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(24849) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(26252) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(26652) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(26873) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shobjidl.h(27552) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shlobj.h(416) : error C2061: syntax
error : identifier"BOOL"
d:/Env/MICROS~1/Windows/v6.1/include\shlobj.h(557) : error C2146: syntax
error : missing";"(before identifier "bFullScreen")
d:/Env/MICROS~1/Windows/v6.1/include\shlobj.h(557) : error C4430: missing
type specifier - assumed int。Note: C++ does not support default-int
d:/Env/MICROS~1/Windows/v6.1/include\shlobj.h(557) : error C4430: missing
type specifier - assumed int。Note: C++ does not support default-int
d:/Env/MICROS~1/Windows/v6.1/include\shlobj.h(558) : error C2146: syntax
error : missing";"(before identifier "bQuickEdit")
d:/Env/MICROS~1/Windows/v6.1/include\shlobj.h(558) : error C4430: missing
type specifier - assumed int。Note: C++ does not support default-int
d:/Env/MICROS~1/Windows/v6.1/include\shlobj.h(558) : error C4430: missing
type specifier - assumed int。Note: C++ does not support default-int
d:/Env/MICROS~1/Windows/v6.1/include\shlobj.h(559) : error C2146: syntax
error : missing";"(before identifier "bInsertMode")
d:/Env/MICROS~1/Windows/v6.1/include\shlobj.h(559) : error C4430: missing
type specifier - assumed int。Note: C++ does not support default-int
d:/Env/MICROS~1/Windows/v6.1/include\shlobj.h(559) : error C4430: missing
type specifier - assumed int。Note: C++ does not support default-int
d:/Env/MICROS~1/Windows/v6.1/include\shlobj.h(560) : error C2146: syntax
error : missing";"(before identifier "bAutoPosition")
d:/Env/MICROS~1/Windows/v6.1/include\shlobj.h(560) : error C4430: missing
type specifier - assumed int。Note: C++ does not support default-int
d:/Env/MICROS~1/Windows/v6.1/include\shlobj.h(560) : error C4430: missing
type specifier - assumed int。Note: C++ does not support default-int
d:/Env/MICROS~1/Windows/v6.1/include\shlobj.h(563) : error C2146: syntax
error : missing";"(before identifier "bHistoryNoDup")
d:/Env/MICROS~1/Windows/v6.1/include\shlobj.h(563) : error C4430: missing
type specifier - assumed int。Note: C++ does not support default-int
d:/Env/MICROS~1/Windows/v6.1/include\shlobj.h(563) : error C4430: missing
type specifier - assumed int。Note: C++ does not support default-int
d:/Env/MICROS~1/Windows/v6.1/include\shlobj.h(1044) : error C2143: syntax
error : missing";"(在"__stdcall")
d:/Env/MICROS~1/Windows/v6.1/include\shlobj.h(1044) : error C4430: missing
type specifier - assumed int。Note: C++ does not support default-int
d:/Env/MICROS~1/Windows/v6.1/include\shlobj.h(1044) : error C4430: missing
type specifier - assumed int。Note: C++ does not support default-int
d:/Env/MICROS~1/Windows/v6.1/include\shlobj.h(1048) : error C2143: syntax
error : missing";"(在"__stdcall")
d:/Env/MICROS~1/Windows/v6.1/include\shlobj.h(1048) : fatal error C1003:
error count exceeds100; stopping compilation
dmake:  Error code 2, while making '../../wntmsci12.pro/obj/comdep.obj'


I



--
Sitz der Gesellschaft:
Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Amtsgericht München: HRB 161028
Geschäftsführer: Jürgen Kunz


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@framework.openoffice.org
For additional commands, e-mail: dev-h...@framework.openoffice.org

Reply via email to