Thread overview
debug vs. release mode?
Mar 10, 2003
yochanan
Mar 13, 2003
Walter
Mar 20, 2003
yochanan
Mar 20, 2003
yochanan
Mar 21, 2003
yochanan
Mar 21, 2003
Walter
March 10, 2003
Hi,
I have a program which I ported over from Symantec C++ to Digital Mars.
Finally, it compiles
ok in release mode - however, in debug mode, I am still getting a compiler
error message.  I am using an
MFC CMap template type and getting this fatal compiler error:
CMap<int ,int ,CToolBar *,CToolBar *&>::InitHashTable

Error: C:\CTOOLS\SC\BIN\..\mfc\include\32-bit\afxtempl.h(1208): no match for
function '?_P(unsigned ,char *,int )'

Build failed.



It compiles ok in release mode - and did also on the old Windows 95 system with SC7.5.

Any suggestions what I need to do to fix it up?



Thanks.

Yochanan Spielberg


March 13, 2003
?_P is the operator new for arrays. Separate new for arrays is a difference between SC++ 7.5 and DMC++. Try compiling with -Aa-


"yochanan" <yochanan@aquanet.co.il> wrote in message news:b4j3qo$fhi$1@digitaldaemon.com...
> Hi,
> I have a program which I ported over from Symantec C++ to Digital Mars.
> Finally, it compiles
> ok in release mode - however, in debug mode, I am still getting a compiler
> error message.  I am using an
> MFC CMap template type and getting this fatal compiler error:
> CMap<int ,int ,CToolBar *,CToolBar *&>::InitHashTable
>
> Error: C:\CTOOLS\SC\BIN\..\mfc\include\32-bit\afxtempl.h(1208): no match
for
> function '?_P(unsigned ,char *,int )'
>
> Build failed.
>
>
>
> It compiles ok in release mode - and did also on the old Windows 95 system with SC7.5.
>
> Any suggestions what I need to do to fix it up?
>
>
>
> Thanks.
>
> Yochanan Spielberg
>
>


March 20, 2003
bs"d
Thanks Walter-

I'll try it.

                     Yochanan

"Walter" <walter@digitalmars.com> ëúá áäåãòä:b4om29$2nbf$1@digitaldaemon.com...
> ?_P is the operator new for arrays. Separate new for arrays is a
difference
> between SC++ 7.5 and DMC++. Try compiling with -Aa-
>
>
> "yochanan" <yochanan@aquanet.co.il> wrote in message news:b4j3qo$fhi$1@digitaldaemon.com...
> > Hi,
> > I have a program which I ported over from Symantec C++ to Digital Mars.
> > Finally, it compiles
> > ok in release mode - however, in debug mode, I am still getting a
compiler
> > error message.  I am using an
> > MFC CMap template type and getting this fatal compiler error:
> > CMap<int ,int ,CToolBar *,CToolBar *&>::InitHashTable
> >
> > Error: C:\CTOOLS\SC\BIN\..\mfc\include\32-bit\afxtempl.h(1208): no match
> for
> > function '?_P(unsigned ,char *,int )'
> >
> > Build failed.
> >
> >
> >
> > It compiles ok in release mode - and did also on the old Windows 95
system
> > with SC7.5.
> >
> > Any suggestions what I need to do to fix it up?
> >
> >
> >
> > Thanks.
> >
> > Yochanan Spielberg
> >
> >
>
>


March 20, 2003
bs"d
Thanks Walter-

I'll try it.

                     Yochanan

"Walter" <walter@digitalmars.com> ëúá áäåãòä:b4om29$2nbf$1@digitaldaemon.com...
> ?_P is the operator new for arrays. Separate new for arrays is a
difference
> between SC++ 7.5 and DMC++. Try compiling with -Aa-
>
>
> "yochanan" <yochanan@aquanet.co.il> wrote in message news:b4j3qo$fhi$1@digitaldaemon.com...
> > Hi,
> > I have a program which I ported over from Symantec C++ to Digital Mars.
> > Finally, it compiles
> > ok in release mode - however, in debug mode, I am still getting a
compiler
> > error message.  I am using an
> > MFC CMap template type and getting this fatal compiler error:
> > CMap<int ,int ,CToolBar *,CToolBar *&>::InitHashTable
> >
> > Error: C:\CTOOLS\SC\BIN\..\mfc\include\32-bit\afxtempl.h(1208): no match
> for
> > function '?_P(unsigned ,char *,int )'
> >
> > Build failed.
> >
> >
> >
> > It compiles ok in release mode - and did also on the old Windows 95
system
> > with SC7.5.
> >
> > Any suggestions what I need to do to fix it up?
> >
> >
> >
> > Thanks.
> >
> > Yochanan Spielberg
> >
> >
>
>


March 21, 2003
bs"d

Is there some way to specify the  -Aa- compiler option from the IDDE?
Or, alternatively if not possible, a way to export the IDDE project settings
to an SMAKE compatible make file? (I am a newbie at using SMAKE.)

Thanks.


"yochanan" <yochanan@aquanet.co.il> ëúá áäåãòä:b5circ$1ibt$1@digitaldaemon.com...
>
> bs"d
> Thanks Walter-
>
> I'll try it.
>
>                      Yochanan
>
> "Walter" <walter@digitalmars.com> ëúá áäåãòä:b4om29$2nbf$1@digitaldaemon.com...
> > ?_P is the operator new for arrays. Separate new for arrays is a
> difference
> > between SC++ 7.5 and DMC++. Try compiling with -Aa-
> >
> >
> > "yochanan" <yochanan@aquanet.co.il> wrote in message news:b4j3qo$fhi$1@digitaldaemon.com...
> > > Hi,
> > > I have a program which I ported over from Symantec C++ to Digital
Mars.
> > > Finally, it compiles
> > > ok in release mode - however, in debug mode, I am still getting a
> compiler
> > > error message.  I am using an
> > > MFC CMap template type and getting this fatal compiler error:
> > > CMap<int ,int ,CToolBar *,CToolBar *&>::InitHashTable
> > >
> > > Error: C:\CTOOLS\SC\BIN\..\mfc\include\32-bit\afxtempl.h(1208): no
match
> > for
> > > function '?_P(unsigned ,char *,int )'
> > >
> > > Build failed.
> > >
> > >
> > >
> > > It compiles ok in release mode - and did also on the old Windows 95
> system
> > > with SC7.5.
> > >
> > > Any suggestions what I need to do to fix it up?
> > >
> > >
> > >
> > > Thanks.
> > >
> > > Yochanan Spielberg
> > >
> > >
> >
> >
>
>


March 21, 2003
"yochanan" <yochanan@aquanet.co.il> wrote in message news:b5dm9p$2c57$1@digitaldaemon.com...
>
> bs"d
>
> Is there some way to specify the  -Aa- compiler option from the IDDE? Or, alternatively if not possible, a way to export the IDDE project
settings
> to an SMAKE compatible make file? (I am a newbie at using SMAKE.)

Yes, you have to enter it as a command line switch.