Sign in to follow this  

VS C++ 2005 Express -- Errors in new, xlocale, and crtdbg

This topic is 3861 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm trying to get my project to compile under VS2005 express edition. The project was originally built under Dev-C++, but I recently became a VS convert and am now porting it over ;) It compiles with no probem in Dev-C++, but VS spews forth a horrible list of errors. I've fixed many of the errors already, but there are a few that I can't seem to find. They seem to stem from the "new" operator, but I have a fairly large project and so narrowing it down to what exactly the problem is has proven difficult. Here are a few of the errors (there's over 150):
1>c:\program files\microsoft visual studio 8\vc\include\new(50) : error C3646: '_THROW0' : unknown override specifier
1>c:\program files\microsoft visual studio 8\vc\include\new(50) : error C2091: function returns function
1>c:\program files\microsoft visual studio 8\vc\include\new(54) : error C3646: '_THROW0' : unknown override specifier
1>c:\program files\microsoft visual studio 8\vc\include\new(54) : error C2091: function returns function
1>c:\program files\microsoft visual studio 8\vc\include\new(54) : error C2556: 'void (__cdecl *operator delete(void *))(void)' : 
   overloaded function differs only by return type from 'void operator delete(void *)'
1>        c:\documents and settings\...\desktop\c++ projects\fighter 1945\predefined c++ types (compiler internal)(24) : see declaration of 'operator delete'
1>c:\program files\microsoft visual studio 8\vc\include\new(54) : error C2373: 'operator delete' : redefinition; different type modifiers
1>        c:\documents and settings\...\desktop\c++ projects\fighter 1945\predefined c++ types (compiler internal)(24) : see declaration of 'operator delete'
1>c:\program files\microsoft visual studio 8\vc\include\new(55) : error C3646: '_THROW1' : unknown override specifier
1>c:\program files\microsoft visual studio 8\vc\include\new(55) : error C2039: 'bad_alloc' : is not a member of 'std'
1>c:\program files\microsoft visual studio 8\vc\include\new(55) : error C2065: 'bad_alloc' : undeclared identifier
1>c:\program files\microsoft visual studio 8\vc\include\new(55) : error C2072: 'operator new' : initialization of a function
1>c:\program files\microsoft visual studio 8\vc\include\new(59) : error C3646: '_THROW0' : unknown override specifier
1>c:\program files\microsoft visual studio 8\vc\include\new(60) : error C2091: function returns function
1>c:\program files\microsoft visual studio 8\vc\include\new(60) : error C2824: return type for 'operator new' must be 'void *'
1>c:\program files\microsoft visual studio 8\vc\include\new(64) : error C3646: '_THROW0' : unknown override specifier
1>c:\program files\microsoft visual studio 8\vc\include\new(65) : error C2091: function returns function
1>c:\program files\microsoft visual studio 8\vc\include\new(65) : error C2817: return type for 'operator delete' must be 'void'
1>c:\program files\microsoft visual studio 8\vc\include\new(71) : error C3646: '_THROW0' : unknown override specifier
I think that whatever the error I'm making is, it happens in multiple source files since many of the error messages are similar. I don't see what the problem is, though ;( Anybody have a suggestion on what might cause it? [Edited by - Emmanuel Deloget on May 21, 2007 6:04:20 AM]

Share this post


Link to post
Share on other sites
I can get all the errors to disappear and the project will compile if I use #include <new> on the cpp files that use new, but why is this necessary? I'm also unable to view any constructors or destructors (except in assembly) when debugging, VS gives me a "no source code available" dialog box...


Share this post


Link to post
Share on other sites

This topic is 3861 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this