Hi, thank your for the detailed description.
1. Previous command line length limitation.
2. The expected html log file does not appear.
I can reproduce nr 1 with a project i have created with the help of the following script on windows 7:
activeProject <- GetProjectManager().GetActiveProject();
filename <- _T("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA.cpp");
for(local i = 0; i < 500; i+=1)
{
local thisFileName = _T(i.tostring()) + _T("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA.cpp");
local path = activeProject.GetCommonTopLevelPath() + _T("src") + wxFILE_SEP_PATH + thisFileName;
IO.WriteFileContents(path , _T("void func") + _T(i.tostring()) + _T("() {}") );
print("create file: " + path)
GetProjectManager().AddFileToProject(path, activeProject, 0);
//activeProject.AddFile(activeProject.GetActiveBuildTarget(), path, true, true, 1);
}
activeProject.Save();
The linking breaks the maximal command line length.
I am working on a solution and will post a patch. This probably will take some discussion, because it modifies the heart of c::b...
The second problem, i can not reproduce at the moment... I will first try to fix bug 1 and then i will look into 2)
Here is a link to a patch, that adds the response files to codeblocks
https://sourceforge.net/p/codeblocks/tickets/953/
Hi ,
I found a temporary solution, but it is not very convenient, especially for ordinary CB users.
In the settings of the compile , I replaced the original link command line with a script.
However, this solution is more dangerous. Ordinary users may cause the CB to crash unexpectedly but do not know how to repair it.
So I still look forward to the official solution, thank you.
(http://2020-05-01 07_40_36-control.png)
(http://2020-05-01 07_41_22-main.cpp [mbed-git-lib] - Code__Blocks svn build)
$linker $libdirs -o $exe_output $link_objects $link_resobjects $link_options $libs
Replace
[[ local a = _T(@"$link_objects"); a.Replace(_T("\\"), _T("/"), true); IO.WriteFileContents(_T("objs.txt") , a); ]]
$linker $libdirs -o $exe_output @objs.txt $link_resobjects $link_options $libs
arm-none-eabi-objcopy.exe -O binary $(TARGET_OUTPUT_FILE) $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).bin