ar @responsefile - No file or directory

I'm not familiar with commandline toolset of gcc/llvm. It is so simple but yet not working as expected. I am becoming suspicious about everything - maybe whole macOS is corrupt?


The problem is that the command:

ar rcu libt.a @responsefile

does not work; the error is ar: @responsefile: No such file or directory. But responsefile is right there. I tried 'gcc @testfile' and it works. Help!

Check your environment variables.

What is it you're expecting @responsefile to do? AFAIK, response files are a Windows thing.

No, AFAIK @responsefile is supported by ar - I tried this in several Linux variants (Fedora/CentOS).


EDIT: I suddenly realized that it may be the fact that ar on macOS has some quirks with this @responsefile thing. Apple may have removed this feature. Can anyone test this simple command and see if it works?


The reason I asked this question is that one of CodeLite project (static library) stopped working. The failed part is this ar @file thing. I guess ar @file feature was removed during last Xcode update (maybe 9.2).

ar @responsefile - No file or directory
 
 
Q