errors in the ddk examples

I am new with the ddk.I tried to build some of the examples and I got a
lot of errors and warnings, what should I do? for example, in the
“genprint” I got this error :genprint\winprint.c(109) : error C2373:
‘EnumPrintProcessorDatatypesA’ : redefinition; different type modifiers
c:\program files\microsoft visual
studio\vc98\include\winspool.h(1417) : see declaration of
‘EnumPrintProcessorDatatypesA’
how do I fix it?
Do I have to fix all the errors in the example or there is something
wronge in my ddk or in its installation?

Did you configure the environment ?

You have to configure the Visual C++ environment using vcvars32.bat
from your VC++ bin dir.
Then you have to configure your SDK environment using setenv.bat from
the SDK installation directory.
Then you have to configure your DDK environment using setenv.bat from
your ddk bin directory. You must specify free or checked - see DDK
documentation - for checked - which I am currently using - it is:
setenv checked

I do all this from the src directory

Then you go to the directory containing the driver you want to build
and type build -cZ

This is just to get you going. You might have to reference the
documentation at some time to understand the switches and options.

regards
Henko

-----Original Message-----
From: israel [mailto:xxxxx@walla.co.il]
Sent: 07 April 2003 16:37
To: NT Developers Interest List
Subject: [ntdev] errors in the ddk examples

I am new with the ddk.I tried to build some of the examples and I got
a
lot of errors and warnings, what should I do? for example, in the
“genprint” I got this error :genprint\winprint.c(109) : error C2373:
‘EnumPrintProcessorDatatypesA’ : redefinition; different type
modifiers
c:\program files\microsoft visual
studio\vc98\include\winspool.h(1417) : see declaration of
‘EnumPrintProcessorDatatypesA’
how do I fix it?
Do I have to fix all the errors in the example or there is something
wronge in my ddk or in its installation?


You are currently subscribed to ntdev as: xxxxx@telkom.co.za
To unsubscribe send a blank email to xxxxx@lists.osr.com

Which ddk would that be?

The current ddk builds this sample without errors. I suspect that you are
using an old ddk, and that you have either misconfigured the installation or
are not building samples using the ddk build environment. In general (and
there have been a very few exceptions,) the samples build without errors.
Consequently build errors in the samples indicate that you are doing
something wrong. In the current ddk you should never have include paths that
point to some installation of visual studio.

-----Original Message-----
From: israel [mailto:xxxxx@walla.co.il]
Sent: Monday, April 07, 2003 10:37 AM
To: NT Developers Interest List
Subject: [ntdev] errors in the ddk examples

I am new with the ddk.I tried to build some of the examples
and I got a lot of errors and warnings, what should I do? for
example, in the “genprint” I got this error
:genprint\winprint.c(109) : error C2373:
‘EnumPrintProcessorDatatypesA’ : redefinition; different type
modifiers
c:\program files\microsoft visual
studio\vc98\include\winspool.h(1417) : see declaration of
‘EnumPrintProcessorDatatypesA’ how do I fix it? Do I have to
fix all the errors in the example or there is something
wronge in my ddk or in its installation?


You are currently subscribed to ntdev as:
xxxxx@stratus.com To unsubscribe send a blank email to
xxxxx@lists.osr.com

Huhhh … really stupid interogatory … but isn’t all of this done for you
if you simply select one of the pre-fab build environments provided for you
when you install the DDK?


Gary G. Little
Have Computer, Will Travel …
909-698-3191
909-551-2105
http://www.wd-3.com
“Henko Gouws (H)” wrote in message
news:xxxxx@ntdev…

Did you configure the environment ?

You have to configure the Visual C++ environment using vcvars32.bat
from your VC++ bin dir.
Then you have to configure your SDK environment using setenv.bat from
the SDK installation directory.
Then you have to configure your DDK environment using setenv.bat from
your ddk bin directory. You must specify free or checked - see DDK
documentation - for checked - which I am currently using - it is:
setenv checked

I do all this from the src directory

Then you go to the directory containing the driver you want to build
and type build -cZ

This is just to get you going. You might have to reference the
documentation at some time to understand the switches and options.

regards
Henko

-----Original Message-----
From: israel [mailto:xxxxx@walla.co.il]
Sent: 07 April 2003 16:37
To: NT Developers Interest List
Subject: [ntdev] errors in the ddk examples

I am new with the ddk.I tried to build some of the examples and I got
a
lot of errors and warnings, what should I do? for example, in the
“genprint” I got this error :genprint\winprint.c(109) : error C2373:
‘EnumPrintProcessorDatatypesA’ : redefinition; different type
modifiers
c:\program files\microsoft visual
studio\vc98\include\winspool.h(1417) : see declaration of
‘EnumPrintProcessorDatatypesA’
how do I fix it?
Do I have to fix all the errors in the example or there is something
wronge in my ddk or in its installation?


You are currently subscribed to ntdev as: xxxxx@telkom.co.za
To unsubscribe send a blank email to xxxxx@lists.osr.com