Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: [Ethereal-dev] packet-ipdc.h: problems compiling with MSVC

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Sun, 21 Mar 2004 18:38:16 +0100
Hi!

I've problems compiling latest CVS on MSVC, as UINT and other datatypes are already defined.

Please add a unique prefix, like: IPDC_UINT or such.

packet-ipdc.c
../packet-ipdc.h(34) : warning C4142: Neudefinition eines Typs ohne Auswirkungen ../packet-ipdc.h(34) : error C2371: 'UINT' : Neudefinition; unterschiedliche Basistypen C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT'
../packet-ipdc.h(34) : error C2086: 'UINT' : Neudefinition
../packet-ipdc.h(36) : error C2371: 'BYTE' : Neudefinition; unterschiedliche Basistypen C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE'
../packet-ipdc.h(36) : error C2086: 'BYTE' : Neudefinition
../packet-ipdc.h(243) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(246) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(248) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(249) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(250) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(251) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(252) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(253) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(254) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(258) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(259) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(261) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(263) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(265) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(266) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(267) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(268) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(269) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(270) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(271) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(272) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(273) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(274) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(277) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(278) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(279) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(280) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(281) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(283) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(284) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(286) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(287) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(288) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(289) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(290) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(292) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(294) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(295) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(296) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(297) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(298) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(300) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(301) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(302) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(303) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(304) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(305) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(306) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(307) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(308) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(309) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(310) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(311) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(312) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(313) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(314) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(315) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(316) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(317) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(318) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(319) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(320) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(321) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(322) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(323) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(324) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(325) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(326) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(327) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(328) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(329) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(330) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(332) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(333) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(334) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(335) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(336) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(337) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(338) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(341) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE' ../packet-ipdc.h(342) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(343) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.h(344) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT' ../packet-ipdc.c(214) : error C2275: "UINT" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(162) : Siehe Deklaration von 'UINT'
../packet-ipdc.c(214) : error C2046: Schluesselwort case ungueltig
../packet-ipdc.c(215) : error C2275: "BYTE" : Ung�ltige Verwendung dieses Typs als Ausdruck C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(143) : Siehe Deklaration von 'BYTE'
../packet-ipdc.c(215) : error C2046: Schluesselwort case ungueltig