Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » problem with new and delete
problem with new and delete [message #35274] Sat, 28 January 2012 02:15 Go to next message
skingston is currently offline  skingston
Messages: 1
Registered: January 2012
Junior Member
Hi,

I'm new to u++. I seem to be having an issue with new and delete. It appears that u++ tries to define its own definition of these. With MSCV 10 (and MINGW), I am getting compiler errors such as:

function 'void *operator new(size_t)' already has a body


By the look of it I might be able to change the defintions in Defs.h to disable UPP_HEAP. Is there a better solution?

[Updated on: Sat, 28 January 2012 02:16]

Report message to a moderator

Re: problem with new and delete [message #35277 is a reply to message #35274] Sat, 28 January 2012 12:36 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
skingston wrote on Fri, 27 January 2012 20:15

Hi,

I'm new to u++. I seem to be having an issue with new and delete. It appears that u++ tries to define its own definition of these. With MSCV 10 (and MINGW), I am getting compiler errors such as:

function 'void *operator new(size_t)' already has a body


By the look of it I might be able to change the defintions in Defs.h to disable UPP_HEAP. Is there a better solution?



U++ implements its own heap for performance reasons. It should work fine unless your code tries to overload new/delete too.

You can switch this off by adding 'USEMALLOC' into your main package configuration.
Previous Topic: random functions proposal
Next Topic: TextSettings update
Goto Forum:
  


Current Time: Thu Apr 18 11:40:28 CEST 2024

Total time taken to generate the page: 0.01476 seconds