Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: martind on December 25, 2007, 03:45:52 am

Title: error: __MINGW_NOTHROW does not name a type
Post by: martind on December 25, 2007, 03:45:52 am
Hi,

I have recently updated my PC/OS to Vista 64-bit. (I know).
The debugger plugin was building fine with MinGW 3.4.5.
Now I get the error __MINGW_NOTHROW when building gdb_driver.cpp.

Anyone seen this before?

C:\MinGW\include\malloc.h   line 53   error: '__MINGW_NOTHROW' does not name a type

From malloc:
Code
#ifdef	__cplusplus
extern "C" {
#endif
/*
   The _heap* memory allocation functions are supported on NT
   but not W9x. On latter, they always set errno to ENOSYS.
*/
_CRTIMP int __cdecl __MINGW_NOTHROW _heapwalk (_HEAPINFO*);
#ifdef __GNUC__
#define _alloca(x) __builtin_alloca((x))
#endif
 


Problem seems to point in _mingw.h:

Code
#if  __MINGW_GNUC_PREREQ (3, 3)
#define __MINGW_NOTHROW __attribute__ ((__nothrow__))
#else
#define __MINGW_NOTHROW
#endif /* GNUC >= 3.3 */

Apologies if this is more of a compiler issue.


Martin.
Title: Re: error: __MINGW_NOTHROW does not name a type
Post by: dje on December 25, 2007, 10:18:14 am
Hi !

You should search the forum concerning Vista problems.
I think at least Mingw 4.2 is required on Vista.

Dje
Title: Re: error: __MINGW_NOTHROW does not name a type
Post by: martind on December 27, 2007, 10:01:55 am
Hi Dje !,

Thanks for your reply. I did do some looking but found people who where using 3.4.5 with Vista (with a few caveats) and assumed I could do same.

But I have downloaded 4.2.1 now and the __MINGW_NOTHROW has dissapeared, so thanks for your help.

Had to rebuild codeblocks because of non-compat issues.

I do have another error now when trying to run my build: The procedure entry point _ZTV17wxMemoryFSHandler could not be located in the dynamic link library wxmsw28u_gcc_custom.dll. But I assume I did something wrong with me CodeBlocks build :)

Thanks again,


Martin.
Title: Re: error: __MINGW_NOTHROW does not name a type
Post by: martind on December 27, 2007, 10:21:20 am
Sorry, had to rebuild wxWidgets as well as codeblocks... typo.