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

command line lenght limit on Windows

<< < (5/5)

Chun Jiu:

--- Quote from: BlueHazzard on April 26, 2020, 11:22:05 am ---Here is a link to a patch, that adds the response files to codeblocks

https://sourceforge.net/p/codeblocks/tickets/953/

--- End quote ---

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.






--- Code: ---$linker $libdirs -o $exe_output $link_objects $link_resobjects $link_options $libs
--- End code ---

Replace


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

--- End code ---

Chun Jiu:

--- Quote from: BlueHazzard on April 26, 2020, 11:22:05 am ---Here is a link to a patch, that adds the response files to codeblocks

https://sourceforge.net/p/codeblocks/tickets/953/

--- End quote ---

Hi BlueHazzard,

This is a late thank you, I confirm that your work has helped me solve the problem.

Those projects that could not be correctly compiled and linked before,

Now it can compile and link correctly after testing.

Thanks again!

Navigation

[0] Message Index

[*] Previous page

Go to full version