Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: gd_on on September 18, 2023, 01:21:55 pm

Title: Error when compiling C::B svn 13356 with msys2/gcc
Post by: gd_on on September 18, 2023, 01:21:55 pm
When I compile C::B svn 13356 with last g++ version form msys2 on windows (version 13.2.0), I obtain this error :
Code
compiler.o:compiler.cpp:(.rdata$_ZTV8Compiler[_ZTV8Compiler]+0x230)||undefined reference to `Compiler::CheckForWarningsAndErrors(wxString const&, long&, wxString&)'|
||error: ld returned 1 exit status|
probably in relation with modifications introduced in svn 13355 in compiler.h and advancedcompileroptionsdlg.cpp.
I tried a full rebuild.
Title: Re: Error when compiling C::B svn 13356 with msys2/gcc
Post by: Miguel Gimenez on September 18, 2023, 05:17:22 pm
Looks like the modified compiler.cpp with the new overload for CheckForWarningsAndErrors() was not commited.
Title: Re: Error when compiling C::B svn 13356 with msys2/gcc
Post by: Miguel Gimenez on September 19, 2023, 07:33:23 pm
@MortenMacFly, can you take a look?. Thank you.
Title: Re: Error when compiling C::B svn 13356 with msys2/gcc
Post by: blauzahn on September 21, 2023, 07:21:19 am
I have the same problem on Linux x86_64.
Title: Re: Error when compiling C::B svn 13356 with msys2/gcc
Post by: Wkerry on September 21, 2023, 11:01:24 am
is this a showstopper for the CB release this year?
Title: Re: Error when compiling C::B svn 13356 with msys2/gcc
Post by: blauzahn on September 21, 2023, 11:06:13 am
Quote
is this a showstopper for the CB release this year?

No. It is very likely, that just the modified compiler.cpp was missing in the commit, like Miguel Gimenez already stated.
Title: Re: Error when compiling C::B svn 13356 with msys2/gcc
Post by: Pecan on September 21, 2023, 06:50:54 pm
I also cannot compile head.
Code
.objs32_64\sdk\compiler.o:compiler.cpp:(.rdata$_ZTV8Compiler[_ZTV8Compiler]+0x230): undefined reference to `Compiler::CheckForWarningsAndErrors(wxString const&, long&, wxString&)'
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 54 second(s))
2 error(s), 17 warning(s) (0 minute(s), 54 second(s))
 

Title: Re: Error when compiling C::B svn 13356 with msys2/gcc
Post by: ollydbg on September 21, 2023, 11:50:28 pm
I send morten an email, and hopefully he will fix this soon.  :)
Title: Re: Error when compiling C::B svn 13356 with msys2/gcc
Post by: ollydbg on September 25, 2023, 02:24:52 am
Morten has fixed the issue.  :)
Title: Re: Error when compiling C::B svn 13356 with msys2/gcc
Post by: blauzahn on September 25, 2023, 06:58:16 am
Also on Linux, cb compiles again with the fix made in svn 13360. Thank you.
Title: Re: Error when compiling C::B svn 13356 with msys2/gcc
Post by: gd_on on September 25, 2023, 11:49:43 am
It's OK now. Many thanks.