what is the macro to set debugger in VC++ for the SOURCE file.
From: Harry Potter (hpotter_at_azkabar.com)
Date: 10/07/04
- Next message: Dan Maddy [MSFT]: "Re: USB Video Class Device don't work"
- Previous message: Max Paklin: "Re: AVStreams Video capture filter with crossbar interface"
- Next in thread: Sigurd Stenersen: "Re: what is the macro to set debugger in VC++ for the SOURCE file."
- Reply: Sigurd Stenersen: "Re: what is the macro to set debugger in VC++ for the SOURCE file."
- Reply: Maxim S. Shatskih: "Re: what is the macro to set debugger in VC++ for the SOURCE file."
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 7 Oct 2004 14:21:01 -0700
what is the macro (win 2000) to set debugger and linker option in the SOURCE
file (using VC++ 6.0)? could you provide me with the link in net?
Now that I know how to build my complete set of symbol file (the message
bellow from Oleg) I have another question.
How can I set these options in the SOURCE file for building the driver
here is what I already have
TARGETNAME=passthru
TARGETPATH=obj
TARGETTYPE=DRIVER
C_DEFINES=$(C_DEFINES) -DNDIS_MINIPORT_DRIVER -DNDIS_WDM=1
!if !defined(DDK_TARGET_OS) || "$(DDK_TARGET_OS)"=="Win2K"
#
# The driver is built in the Win2K build environment
#
C_DEFINES=$(C_DEFINES) -DNDIS40_MINIPORT=1
C_DEFINES=$(C_DEFINES) -DNDIS40=1
!else
#
# The driver is built in the XP or .NET build environment
# So let us build NDIS 5.1 version.
#
C_DEFINES=$(C_DEFINES) -DNDIS51_MINIPORT=1
C_DEFINES=$(C_DEFINES) -DNDIS51=1
!endif
# Uncomment the following to build for Win98/SE/WinMe
# This causes several APIs that are not present in Win9X to be
# ifdef'ed out.
# C_DEFINES=$(C_DEFINES) -DWIN9X=1
PRECOMPILED_INCLUDE=precomp.h
PRECOMPILED_PCH=precomp.pch
PRECOMPILED_OBJ=precomp.obj
TARGETLIBS=$(DDK_LIB_PATH)\ndis.lib
USE_MAPSYM=1
#
# setup visualC++ source browsing
#
BROWSER_INFO=1
BSCMAKE_FLAGS=$(BSCMAKE_FLAGS) -n
Thank you for the help.
"Oleg Starodumov" <oleg_staro@hotmail.com> wrote in message
news:uKx2pP5qEHA.2588@TK2MSFTNGP12.phx.gbl...
>
> > I'm using VC++ 6.0 on win 2000... where/how do I set the option to get
> > complete symbol files for the entire code (each .cpp)?
> >
>
> Compiler: /Zi (you can also use /Z7 or /ZI - see their documentation)
> Linker: /debug /debugtype:cv /pdb:yourapp.pdb /pdbtype:con
>
> In release build, add /opt:ref linker option.
>
> Make sure that compiler options are not overwritten on the file level.
>
> > is everything going to be in one .pdb file?
>
> If you use .PDB file (/pdb:filename), it depends on /pdbtype option.
> With /pdbtype:con, all debug information for executable is stored in one
.PDB file.
> With /pdbtype:sept, you usually get at least two files (yourapp.pdb and
vc60.pdb).
>
> You can take a look at this article for more detailed information:
> http://www.debuginfo.com/articles/gendebuginfo.html
>
> Regards,
> Oleg
>
>
>
>
>
>
>
>
>
>
>
>
- Next message: Dan Maddy [MSFT]: "Re: USB Video Class Device don't work"
- Previous message: Max Paklin: "Re: AVStreams Video capture filter with crossbar interface"
- Next in thread: Sigurd Stenersen: "Re: what is the macro to set debugger in VC++ for the SOURCE file."
- Reply: Sigurd Stenersen: "Re: what is the macro to set debugger in VC++ for the SOURCE file."
- Reply: Maxim S. Shatskih: "Re: what is the macro to set debugger in VC++ for the SOURCE file."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|