Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

error: __MINGW_NOTHROW does not name a type

(1/1)

martind:
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
 
--- End code ---


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 */

--- End code ---

Apologies if this is more of a compiler issue.


Martin.

dje:
Hi !

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

Dje

martind:
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.

martind:
Sorry, had to rebuild wxWidgets as well as codeblocks... typo.

Navigation

[0] Message Index

Go to full version