1
Help / Re: Build error "'HEAP_INFORMATION_CLASS' has not been declared"
« Last post by Miguel Gimenez on Today at 07:58:06 am »Spam reported to moderator.
When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.
You likely have a broken Compiler or wxWidgets installation or do NOT have WX_PRECOMP defined (but the log you posted has it defined).Maybe I need to post this question in another forum topic? For example, in Using Code::Blocks? I really need to configure Code::Blocks to create GTK applications, and in this topic the answer is no.
Where and How did you do the wxWidgets installation?
It appears to be missing the #include "wx/msw/wrapwin.h" from "wx/wxprec.h" header.
(The wrapwin.h includes windows.h; that includes winnt.h that defines HEAP_INFORMATION_CLASS fnf)
In the app.cpp file try adding the code below between the including <sdk.h> and "app.h".
If it works; likely have wxWidgets issue; if it still fails likely has a bad Compiler.
To confirm compiler try including
#include <windows.h>
or
#include <winnt.h>
Edit 4 or 5: changed __WINDOWS__ to __WXMSW__ in code below.Code#include <sdk.h>
#ifndef WX_PRECOMP
#ifdef __WXMSW__
#include <wx/msw/wrapwin.h> // HEAP_INFORMATION_CLASS
#endif // __WXMSW__
#endif // WX_PRECOMP
#include "app.h"
Tim S.

==33537== (see section Limitations in user manual)
On Linux, Valgrind determines at startup the size of the 'brk segment' using the RLIMIT_DATA rlim_cur, with a minimum of 1 MB and a maximum of 8 MB. Valgrind outputs a message each time a program tries to extend the brk segment beyond the size determined at startup. Most programs will work properly with this limit, typically by switching to the use of mmap to get more memory. If your program really needs a big brk segment, you must change the 8 MB hardcoded limit and recompile Valgrind.