Re: iostream



From some live SOURCES file, for a DCOM service EXE based on ATL:

# Exception Handling on stack
USER_C_FLAGS=$(USER_C_FLAGS) /EHsc

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com

"Carey McMaster" <mcmaster@xxxxxxxxxxx> wrote in message
news:%23n9lw8SJHHA.3872@xxxxxxxxxxxxxxxxxxxxxxx
Thanks Scott! It compiles now. I get lots of warnings about c++ exception
handler. It tells me to use /EHcs. Does anyone know where to state this
switch? I find it odd that this capability is included in the kit, though it
seems very few take advantage of it.

Regards,
cm


"Scott Noone" <snoone@xxxxxxx> wrote in message
news:uHV5ZrSJHHA.1280@xxxxxxxxxxxxxxxxxxxxxxx
Try setting

USE_STL=1
STL_VER=70

In your SOURCES. If that doesn't work start defining random things you
find in makefile.new until you either get it to work or decide that it's
no longer worth trying to get it to build in the DDK

-sctt

--
Scott Noone
Software Engineer
OSR Open Systems Resources, Inc.
http://www.osronline.com


"Carey McMaster" <mcmaster@xxxxxxxxxxx> wrote in message
news:%236EaHnSJHHA.2236@xxxxxxxxxxxxxxxxxxxxxxx
stdio.h doesn't know anything about stl::cout? How does your suggestion
work?

regards,
cm

"Maxim S. Shatskih" <maxim@xxxxxxxxxxxxxxxx> wrote in message
news:u7xlydSJHHA.420@xxxxxxxxxxxxxxxxxxxxxxx
Use stdio.h instead.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com

"Carey McMaster" <mcmaster@xxxxxxxxxxx> wrote in message
news:uI2nMZSJHHA.4384@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

I'm using the winddk (6000) to not only develop a WDF driver, but also
a
console app that tests out my driver (using IOCTLs). When I include
<iostream> in the console app, the ddk compiler can't find it. I did
find it
in c:\winddk\6000\inc\api\crt\stl70. The test app uses classes and
"new"
constructs, but I can't seem to include <iostream> for stl::cout and
the
like.

Here is my sources file for the app
==============================================================
TARGETNAME=rmgr
TARGETTYPE=PROGRAM

UMTYPE=console
UMENTRY=main

USE_MSVCRT=1

!if defined(DDKBUILDENV)
C_DEFINES = $(C_DEFINES) -DDDKBUILD=1
!endif

TARGETLIBS=$(SDK_LIB_PATH)\setupapi.lib \
$(SDK_LIB_PATH)\user32.lib \


INCLUDES=$(INCLUDES);$(DDK_INC_PATH);

SOURCES= \
rmgr.cpp

RUN_WPP= $(SOURCES) #-func:printf(MSG,...)

=========================================================

thanks in advance for help,
cm










.



Relevant Pages

  • Re: iostream
    ... Maxim Shatskih, Windows DDK MVP ... console app that tests out my driver. ...
    (microsoft.public.development.device.drivers)
  • Re: iostream
    ... Maxim Shatskih, Windows DDK MVP ... console app that tests out my driver. ... The test app uses classes and "new" ... Here is my sources file for the app ...
    (microsoft.public.development.device.drivers)
  • Re: sharing of source files
    ... Maxim Shatskih, Windows DDK MVP ... > i need to share the c-source files (please dont confuse with sources file ... under each directory) between the sys and exe directory, ...
    (microsoft.public.development.device.drivers)
  • Re: makefile.new U1087
    ... In SOURCES file itself. ... Maxim Shatskih, Windows DDK MVP ... I'm new to driver development and I implemented my first driver. ...
    (microsoft.public.development.device.drivers)
  • Re: binplace doesnt seem to instantiate post build
    ... Maxim Shatskih, Windows DDK MVP ... binplace is post-build operations ... ... i cna set DLL base address via my sources file .. ...
    (microsoft.public.development.device.drivers)