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

macOS Catalina build

(1/3) > >>

Inskipp:
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:


--- Code: ---../../../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");

--- End code ---

Does anybody have a quick tip to where to look before I start to dig into the code?

Thanks in advance,
Inskipp

oBFusCATed:
Can you post the actual error?
What version of wxWidgets are you using?

Inskipp:
Hi,

I think that's the actual error... Here's a little bit more context though:


--- Code: ---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

--- End code ---

I'm using wxWidgets-3.1.4

Cheers,
Inskipp

oBFusCATed:
Nope this is one of the 4 warnings. Find the error. Search for the "error: " string.

Inskipp:
Hi,

Yeah, you're right. I hate working in the terminal, that's why I need CB :-)

Here's the real error:


--- Code: ---../../../src/src/main.cpp:2681:22: error: calling a private constructor of class 'wxPaintEvent'
        wxPaintEvent e;

--- End code ---

Thanks,
Inskipp

Navigation

[0] Message Index

[#] Next page

Go to full version