Re: Switches to use C++ STL

From: vipin (vipin_at_nospam.com)
Date: 09/07/04


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
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Relevant Pages

  • Re: Testosterone is anabolic or not?
    ... All i got were stupid remarks like "stick to your own KIND" Yeah, ... Turkish and Moroccon girls can be very pretty, but thats a nono. ... I had this African girlfriend 3 years ago. ... doesnt trust me near the presence of black women. ...
    (misc.fitness.weights)
  • Re: AVLV Photos need updating
    ... Yeah, go figure. ... What does Grammer, Indiana have to do with grammar and spelling? ... Racked up over 120 quarters with the SSA and thats ...
    (alt.vacation.las-vegas)
  • Re: UK faction: Kano?
    ... > yeah there has been a fair bit of that in Hampshire as well I think. ... > as I can be without being in London area. ... > really do some server side stuff like apache as well. ... i would like to learn .php though, thats looks useful. ...
    (rec.music.hip-hop)
  • Re: How the GOP Lost Its Way
    ... Yeah the two names are, by common consent and legally, considered to be the ... Thats what you get when you have one country with two official languages. ... Yeah still up and running. ... Check out the second picture down the page, yes folks, thats a ...
    (rec.knives)
  • Re: Couple of questions for the group.
    ... Yeah, I meant increase, got it arse about. ... The Dean Markleys maybe are less dense? ... thats all about we can say without some direct facts or ... but discernable differences in tension between different brands. ...
    (alt.guitar)