Hi guys,
I used to use Code::Blocks a lot on Linux years ago (I created in house tools using wxWidgets so CB was an obvious choice).
Now I'm trying to build Code::Blocks on my Mac and I ran into an issue related to squirrel (if I'm not mistaken), but I'm not familiar with it at all (or the CB codebase in large, to be honest).
The error pops up at line 995 (using the compressed codeblocks-20.03.tar.xz) and it's:
../../../src/src/main.cpp:955:21: note: in instantiation of function template specialization 'SqPlus::SQClassDef<MainFrame>::func<bool (MainFrame::*)(const wxString &, bool)>'
requested here
func(&MainFrame::Open, "Open");
Does anybody have a quick tip to where to look before I start to dig into the code?
Thanks in advance,
Inskipp
Hi,
I think that's the actual error... Here's a little bit more context though:
In file included from ../../../src/src/main.cpp:12:
In file included from ../../../src/src/app.h:33:
In file included from ../../../src/src/main.h:23:
In file included from ../../../src/include/scripting/bindings/sc_base_types.h:27:
../../../src/include/scripting/sqplus/sqplus.h:1760:51: warning: binding dereferenced null pointer to reference has undefined behavior [-Wnull-dereference]
RegisterInstance(v,newClass.GetObjectHandle(),*(TClassType *)0,pfunc,name_);
^~~~~~~~~~~~~~~~
../../../src/src/main.cpp:955:21: note: in instantiation of function template specialization 'SqPlus::SQClassDef<MainFrame>::func<bool (MainFrame::*)(const wxString &, bool)>'
requested here
func(&MainFrame::Open, "Open");
^
4 warnings and 1 error generated.
make[3]: *** [main.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
I'm using wxWidgets-3.1.4
Cheers,
Inskipp
Hi,
Yeah, you're right. I hate working in the terminal, that's why I need CB :-)
Here's the real error:
../../../src/src/main.cpp:2681:22: error: calling a private constructor of class 'wxPaintEvent'
wxPaintEvent e;
Thanks,
Inskipp
Hi,
Yep, I've managed to get this and another error fixed, but now I'm running into an issue with directorymonitor.cpp....
../../../../../src/plugins/contrib/FileManager/directorymonitor.cpp:29:10: fatal error: 'fam.h' file not found
#include <fam.h> //USES EITHER GAMIN OR FAM (IDENTICAL FILE MONITORING APIS)
Both (FAM and GAMIN) looks like Linux specific tools... :-/
Any ideas?
Thanks in advance,
Inskipp