Can you please try "\\\$ORIGIN/LibDir" that is one escape character for the backslash and one escape character for the $
with regards Tushar Tushar Joshi, Nagpur: http://www.tusharjoshi.com * MCSD_NET C#, SCJP, RHCE, ZCE, PMP, CSM, SAFe, PRINCE2 * Senior Architect @ Persistent Systems http://www.persistent.com * LinkedIn: http://www.linkedin.com/in/tusharvjoshi On Tue, Apr 16, 2019 at 6:22 AM Heng Zhou <hzh...@clemson.edu> wrote: > Hi, > > I wanna the following linker flags to be passed to the linker: > > -Wl,--enable-new-dtags,-rpath,"\$ORIGIN/LibDir" > > So I type it literally in the Linker's Additional Options. But I found > that the '$' and 'O' in "\$ORIGIN/LibDir" got eaten by NetBeans, so only > "\RIGIN" appears in actual linking option. I guess it is related to some > pre-processing like escaping, but I'm not familiar with it. Could you > please instruct me how to circumvent the pre-processing so that it is > exactly "\$ORIGIN/LibDir" that is actually passed to the linker? Thanks. >