c++.mfc - debug vs. release mode?
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
Mar 10 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 matchforfunction '?_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
Mar 12 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 adifferencebetween SC++ 7.5 and DMC++. Try compiling with -Aa- "yochanan" <yochanan aquanet.co.il> wrote in message news:b4j3qo$fhi$1 digitaldaemon.com...compilerHi, 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 asystemerror 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 matchforfunction '?_P(unsigned ,char *,int )' Build failed. It compiles ok in release mode - and did also on the old Windows 95with SC7.5. Any suggestions what I need to do to fix it up? Thanks. Yochanan Spielberg
Mar 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 adifferencebetween SC++ 7.5 and DMC++. Try compiling with -Aa- "yochanan" <yochanan aquanet.co.il> wrote in message news:b4j3qo$fhi$1 digitaldaemon.com...compilerHi, 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 asystemerror 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 matchforfunction '?_P(unsigned ,char *,int )' Build failed. It compiles ok in release mode - and did also on the old Windows 95with SC7.5. Any suggestions what I need to do to fix it up? Thanks. Yochanan Spielberg
Mar 20 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...Mars.?_P is the operator new for arrays. Separate new for arrays is adifferencebetween 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 DigitalmatchcompilerFinally, it compiles ok in release mode - however, in debug mode, I am still getting aerror 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): noforsystemfunction '?_P(unsigned ,char *,int )' Build failed. It compiles ok in release mode - and did also on the old Windows 95with SC7.5. Any suggestions what I need to do to fix it up? Thanks. Yochanan Spielberg
Mar 20 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 projectsettingsto an SMAKE compatible make file? (I am a newbie at using SMAKE.)Yes, you have to enter it as a command line switch.
Mar 21 2003