With the inspiration from Mr. Tushar, I finally figured out the trick: The option should be written as "\$$ORIGIN/FMOD". Double $ is key! :-)
On Mon, Apr 15, 2019 at 11:19 PM Heng Zhou <hzh...@clemson.edu> wrote: > 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=ULL23hq6_0mXbOuPO7dXhmVE-kHIZDeD-lznr4vQIu8&s=LuDtIMYMsToXihq8WxjE17Lnc-8IesQzhga81owkSY4&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=ULL23hq6_0mXbOuPO7dXhmVE-kHIZDeD-lznr4vQIu8&s=nIgNrAEQUblpwMVPA-PFo8wJxGUiOVPOB7DKqxaIVvM&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=ULL23hq6_0mXbOuPO7dXhmVE-kHIZDeD-lznr4vQIu8&s=TWLUQ9QhVB89QX2ht6WaZ78dyM0ux0OrHO_KU0EBbH0&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. >>> >>