check http://msdn.microsoft.com/en-us/library/tz7sxz99(VS.80).aspx
the macro is just for tracking allocation and dumping the leaks when the 
program exits (in the debug output of visual studio)

if you don't care about tracking memory with the built-in mecanism of 
microsoft, you can safely remove all the #define new DEBUG_NEW from your code

Stephane

>>> [EMAIL PROTECTED] 17/11/2008 16:06 >>>
Oh, thanks Stephane,

It works.

I removed the code in my file "StdAfx.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif

Then the error massage is gone.

But, that code need for other files, doesn't it?

Or I should just remove this code in "StdAfx.h"



Jeongseok

-----Original Message-----
From: Stephane Routelous [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 18, 2008 4:51 AM
To: [email protected] 
Subject: Re: [Opensg-users] error C2665

Hey,

i cannot be 100% sure, but i encouter this error with another library
where I was using Microsoft's MFC and MFC redefined the new operator
with DEBUG_NEW .
check the beginning of your file (where you are calling OpenMesh) to
see if you have such a define

HTH,

Stephane

>>> [EMAIL PROTECTED] 17/11/2008 14:32 >>>
Hi,

 

I got compile error message.

What's wrong?

 

Error     312      error C2665: 'operator new' : none of the 6
overloads
could convert all the argument types
d:\OpenSG\Include\OpenSG\OSGFieldContainerImpl.inl    213

Error     313      error C2061: syntax error : identifier 'pTmp'
d:\OpenSG\Include\OpenSG\OSGFieldContainerImpl.inl           240

 

 

 

Jeongseok

 

______________________________________________________________ 

Reputation Resources Results 

http://www.rwdi.com 

______________________________________________________________ 

This communication is intended for the sole use of the party to whom it 
is addressed and may contain information that is privileged and/or 
confidential. Any other distribution, copying or disclosure is strictly
prohibited. If you have received this e-mail in error, please notify us
immediately by telephone (1-519-823-1311) and delete the message without 
retaining any hard or electronic copies of same. 

RWDI scans outgoing emails for viruses, but makes no warranty as to their
absence in this email or attachments.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/ 
_______________________________________________
Opensg-users mailing list
[email protected] 
https://lists.sourceforge.net/lists/listinfo/opensg-users 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/ 
_______________________________________________
Opensg-users mailing list
[email protected] 
https://lists.sourceforge.net/lists/listinfo/opensg-users

______________________________________________________________ 

Reputation Resources Results 

http://www.rwdi.com 

______________________________________________________________ 

This communication is intended for the sole use of the party to whom it 
is addressed and may contain information that is privileged and/or 
confidential. Any other distribution, copying or disclosure is strictly
prohibited. If you have received this e-mail in error, please notify us
immediately by telephone (1-519-823-1311) and delete the message without 
retaining any hard or electronic copies of same. 

RWDI scans outgoing emails for viruses, but makes no warranty as to their
absence in this email or attachments.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to