That way, the option passed is "\\\RIGIN/LibDir". On Mon, Apr 15, 2019 at 11:16 PM Tushar Joshi <tusharvjo...@gmail.com> wrote:
> 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: > https://urldefense.proofpoint.com/v2/url?u=http-3A__www.tusharjoshi.com&d=DwIBaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=NMX1BNoBG-Bn1kvZ0H2kBayJt7s1Lx3N_B0eyvYWkPI&m=lS8lFlZBKlohLkrIpyd4w4zvsjJSLiEiTIwoRDl1P2Q&s=3csUw6mhkUA5apoFQEABKbG9IcAL2XoWVX3tvQqRltg&e= > > * MCSD_NET C#, SCJP, RHCE, ZCE, PMP, CSM, SAFe, PRINCE2 > > * Senior Architect @ Persistent Systems > https://urldefense.proofpoint.com/v2/url?u=http-3A__www.persistent.com&d=DwIBaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=NMX1BNoBG-Bn1kvZ0H2kBayJt7s1Lx3N_B0eyvYWkPI&m=lS8lFlZBKlohLkrIpyd4w4zvsjJSLiEiTIwoRDl1P2Q&s=SATr6QNcCyxQ5FSZgQ1So8FgjZGsIX3GPw5LjjHcjp0&e= > * LinkedIn: > https://urldefense.proofpoint.com/v2/url?u=http-3A__www.linkedin.com_in_tusharvjoshi&d=DwIBaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=NMX1BNoBG-Bn1kvZ0H2kBayJt7s1Lx3N_B0eyvYWkPI&m=lS8lFlZBKlohLkrIpyd4w4zvsjJSLiEiTIwoRDl1P2Q&s=PqmyRNXjbL5jgLiDZw5sAxEK0_qhttdaMeAiUcqgtKw&e= > > > > 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. >> >