Author Topic: Advanced compiler option: write $link object to a file  (Read 3885 times)

Offline JNo

  • Single posting newcomer
  • *
  • Posts: 7
Advanced compiler option: write $link object to a file
« 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

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1634
Re: Advanced compiler option: write $link object to a file
« Reply #1 on: March 25, 2024, 03:43:55 pm »
Use response files.