News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Error when compiling C::B svn 13356 with msys2/gcc

Started by gd_on, September 18, 2023, 01:21:55 PM

Previous topic - Next topic

gd_on

When I compile C::B svn 13356 with last g++ version form msys2 on windows (version 13.2.0), I obtain this error :
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.
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Miguel Gimenez

Looks like the modified compiler.cpp with the new overload for CheckForWarningsAndErrors() was not commited.

Miguel Gimenez


blauzahn


Wkerry

is this a showstopper for the CB release this year?

blauzahn

Quoteis 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.

Pecan

I also cannot compile head.

.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))



ollydbg

I send morten an email, and hopefully he will fix this soon.  :)
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

ollydbg

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

blauzahn

Also on Linux, cb compiles again with the fix made in svn 13360. Thank you.

gd_on

Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).