Code::Blocks Forums

User forums => Help => Topic started by: JNo on March 25, 2024, 02:29:13 pm

Title: Advanced compiler option: write $link object to a file
Post by: JNo on March 25, 2024, 02:29:13 pm
hello,

I have a particular need for definition of lin obects files to static library:

In command line macro I want to write each object in file as:
objects\file1.o
objects\file2.o
....

then launch cmd:
for /f %%i in (obj.txt) do @echo $liblinker %%i

if I generate file I use following command FOR %%i IN ($link_objects) DO @echo %%i > file.txt
I encounter command line leght limitation.

How I can  generate this temporary file
Title: Re: Advanced compiler option: write $link object to a file
Post by: Miguel Gimenez on March 25, 2024, 03:43:55 pm
Use response files.