61
General (but related to Code::Blocks) / Re: Generate a file '*_linux.cbp' to '*_win.cbp' or vice versa
« Last post by Miguel Gimenez on April 24, 2026, 10:09:10 am »Badly hidden spam reported to moderator.
The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .
my advice: don't use pcm.
I have several projects using C++23 in CB, even C++26.
PCM as in Precompiled Modules in C++26 (the upcoming C++ standard)
I can find no code that saves the files ok and then closes them.
Go to Settings -> Compiler, select the "Toolchain executables" tab and fill the controls with your compiler's location (use where gcc.exe in the cmd prompt) and program's names.
if (!cbSaveToFile(m_Filename, m_pControl->GetText(), GetEncoding(), GetUseBom(), robustSave))
{
wxString msg;
msg.Printf(_("File %s could not be saved..."), GetFilename().c_str());
cbMessageBox(msg, _("Error saving file"), wxICON_ERROR);
return false; // failed; file is read-only?
}