ar command doesn't work on SUA with absolute archive path

Hi All,

I am using 64-bit ‘ar’ command (from /opt/pgi/sua64/7.0-3/bin/ar directory) and it doesn’t work if we provide absolute path of the archive to be created. However, it works fine if we provide relative path. It fails with the following error:

LNK1104: cannot open file

Is it a known issue? Am I missing some configuration?

Thanks and Regards,
// Rahul

Hi Rahul,

The ar that PGI supplies with the SUA compilers is really just a wrapper for Microsoft’s LINK utility which doesn’t recognize SUA path names. For absolute path, you need to use the full DOS path with escaped backslashes.

Hope this helps,
Mat