Re: Switches to use C++ STL
From: vipin (vipin_at_nospam.com)
Date: 09/07/04
- Next message: Chris Whitehead: "Re: Trying to achieve promptless driver installation"
- Previous message: Manfred Wilner: "Re: SetupCopyOEMInf is prompting when no digital signature available"
- In reply to: Calvin Guan: "Re: Switches to use C++ STL"
- Next in thread: Calvin Guan: "Re: Switches to use C++ STL"
- Reply: Calvin Guan: "Re: Switches to use C++ STL"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 7 Sep 2004 23:12:34 +0530
Yeah, thats it.
I had to do one additional step though,but that was while linking just to
get the CRT initialized I had to point the entry
to -entry:_DllMainCRTStartup@12
to get across the .CRT static initializers problem.
Thanks
Vipin
"Calvin Guan" <cguan@pleasenospam.ati.com> wrote in message
news:uZ2RNvPlEHA.3564@TK2MSFTNGP14.phx.gbl...
> How about adding
>
> USE_NATIVE_EH=1
>
> --
> -
> Calvin Guan Software Engineer
> ATI Technologies Inc. www.ati.com
> "vipin" <vipin@nospam.com> wrote in message
> news:udWR6BPlEHA.2680@TK2MSFTNGP15.phx.gbl...
> > Hi,
> > I tried, but gives some errors:-
> >
> > 'nmake.exe /c BUILDMSG=Stop. -i NTTEST= UMTEST= NOLINK=1 386=1'
> >
>
cl -nologo -Ii386\ -I. -Iobjchk\i386 -Id:\WINDDK\2600\inc\wxp -Id:\WINDDK\26
> >
> \inc\wxp -Id:\WINDDK\2600\inc\crt -D_X86_=1 -Di386=1 -DCONDITION_HANDLIN
> >
G=1 -DNT_INST=0 -DWIN32=100 -D_NT1X_=100 -DWINNT=1 -D_WIN32_WINNT=0x0501
> >
>
/DWINVER=0x0501 -D_WIN32_IE=0x0600 -DWIN32_LEAN_AND_MEAN=1 -DDBG=1 -DDEVL
> >
>
=1 -D__BUILDMACHINE__=WinDDK -DFPO=0 -DNDEBUG -D_DLL=1 -D_MT=1 -DSTRICT -D
> > UNICODE /EHsc /c /Zel /Zp8 /Gy /W3 /WX /WX /Gd /QIfdiv- /QIf /G6
> /Gi-
> > /Gm- /GX- /GR- /GF -Z7 /Od /Oi /Oy-
> > /Gd -FId:\WINDDK\2600\inc\wxp\warning.h .\test.cpp
> >
> > cl : Command line warning D4025 : overriding '/EHs' with '/GX-'
> >
> > cl : Command line warning D4007 : '/EHc' requires '/EHa, /EHs or /GX';
> > option ignored
> >
> > test.cpp
> >
> > d:\WINDDK\2600\inc\crt\istream(564) : error C2220: warning treated as
> > error - no object file generated
> >
> > d:\WINDDK\2600\inc\crt\istream(564) : warning C4530: C++ exception
handler
> > used, but unwind semantics are not enabled. Specify /EHsc
> >
> > Thanks
> > Vipin
> >
> > "Calvin Guan" <cguan@pleasenospam.ati.com> wrote in message
> > news:#C2XozckEHA.524@TK2MSFTNGP15.phx.gbl...
> > > Vipin,
> > >
> > > How's it going?
> > >
> > > USE_STL=1 in SOURCES file
> > >
> > > Here is the code snippet of my working project that use STL and MFC.
> > >
> > > HTH,
> > > -
> > > Calvin Guan Software Engineer
> > > ATI Technologies Inc. www.ati.com
> > >
> > > !IF (0)
> > >
> > > Module: SOURCES
> > >
> > > Purpose:
> > > Makefile to build abcd with DDK
> > >
> > > Revision History:
> > >
> > > who when what
> > > cguan Aug 17,2004 created
> > >
> > > !ENDIF
> > >
> > > TARGETNAME=abcd
> > > TARGETTYPE=PROGRAM
> > > TARGETPATH=obj
> > >
> > > INCLUDES=win\ms_sdk\b3790\inc
> > >
> > > C_DEFINES=/D_MBCS
> > >
> > > #
> > > # stupid MFC junk
> > > #
> > > USE_MFC=1
> > >
> > > #
> > > # Doesn't link without this.
> > > # allow chk or free lib
> > > #
> > > DEBUG_CRTS=1
> > >
> > >
> > > #########################
> > > # use multi-threaded DLL. use static lib otherwise
> > > #########################
> > > #USE_MSVCRT=1
> > >
> > > ##############
> > > # need irt
> > > ##############
> > > USE_IOSTREAM=1
> > >
> > > ############
> > > #need prt
> > > ############
> > > USE_STL=1
> > >
> > > UMTYPE=windows
> > >
> > > 386_STDCALL=0
> > > USER_C_FLAGS=/Gd
> > >
> > > BROWSER_INFO=1
> > > ##BROWSERFILE=$(O)\$(TARGETNAME).bsc
> > >
> > > PRECOMPILED_CXX=1
> > > PRECOMPILED_INCLUDE=StdAfx.h
> > > PRECOMPILED_PCH=StdAfx.pch
> > > PRECOMPILED_OBJ=StdAfx.obj
> > >
> > >
> > > !IF (0)
> > > /*
> > > *
> > > * ADD OR REMOVE SOURCE FILES HERE!!!
> > > *
> > > */
> > > !ENDIF
> > >
> > > SOURCES= 1234.cpp
> > >
> > >
> > > TARGETLIBS= \
> > > $(SDK_LIB_PATH)\spoolss.lib \
> > > $(SDK_LIB_PATH)\gdi32.lib \
> > > $(SDK_LIB_PATH)\winmm.lib \
> > > $(SDK_LIB_PATH)\version.lib \
> > > $(SDK_LIB_PATH)\OLDNAMES.lib
> > >
> > > RCNOFONTMAP=1
> > >
> > > "vipin" <vipin@nospam.com> wrote in message
> > > news:%23KuxxIckEHA.3724@TK2MSFTNGP11.phx.gbl...
> > > > Hi,
> > > > How can I build using STL & C++ using the build utility? I an
t
> to
> > > use
> > > > the C++ STLs.
> > > >
> > > > Thanks
> > > > vipin
> > > >
> > > >
> > >
> > >
> >
> >
>
>
- Next message: Chris Whitehead: "Re: Trying to achieve promptless driver installation"
- Previous message: Manfred Wilner: "Re: SetupCopyOEMInf is prompting when no digital signature available"
- In reply to: Calvin Guan: "Re: Switches to use C++ STL"
- Next in thread: Calvin Guan: "Re: Switches to use C++ STL"
- Reply: Calvin Guan: "Re: Switches to use C++ STL"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|