You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Heng Zhou <hz...@clemson.edu> on 2019/04/16 00:51:50 UTC

The '$' and 'O' in the Linker's Additional Options got eaten by NetBeans

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.

Re: The '$' and 'O' in the Linker's Additional Options got eaten by NetBeans

Posted by Tushar Joshi <tu...@gmail.com>.
Awesome!

with regards
    Tushar


On Tue, Apr 16, 2019 at 8:57 AM Heng Zhou <hz...@clemson.edu> wrote:

> 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 <hz...@clemson.edu> wrote:
>
>> That way, the option passed is "\\\RIGIN/LibDir".
>>
>> On Mon, Apr 15, 2019 at 11:16 PM Tushar Joshi <tu...@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: http://www.tusharjoshi.com
>>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.tusharjoshi.com_&d=DwMFaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=NMX1BNoBG-Bn1kvZ0H2kBayJt7s1Lx3N_B0eyvYWkPI&m=ULL23hq6_0mXbOuPO7dXhmVE-kHIZDeD-lznr4vQIu8&s=cieUvzxsBgmuh4Sbp4OnOdvX85w4RfPbK81DfV0Woos&e=>
>>>
>>> * MCSD_NET C#, SCJP, RHCE, ZCE, PMP, CSM, SAFe, PRINCE2
>>>
>>> * Senior Architect @ Persistent Systems http://www.persistent.com
>>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.persistent.com_&d=DwMFaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=NMX1BNoBG-Bn1kvZ0H2kBayJt7s1Lx3N_B0eyvYWkPI&m=ULL23hq6_0mXbOuPO7dXhmVE-kHIZDeD-lznr4vQIu8&s=zG95i9Zlgdw2yc10zIRrTs-85Y8916MvJ82zoFHVIEY&e=>
>>> * LinkedIn: http://www.linkedin.com/in/tusharvjoshi
>>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.linkedin.com_in_tusharvjoshi&d=DwMFaQ&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 <hz...@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.
>>>>
>>>

Re: The '$' and 'O' in the Linker's Additional Options got eaten by NetBeans

Posted by Heng Zhou <hz...@clemson.edu>.
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 <hz...@clemson.edu> wrote:

> That way, the option passed is "\\\RIGIN/LibDir".
>
> On Mon, Apr 15, 2019 at 11:16 PM Tushar Joshi <tu...@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 <hz...@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.
>>>
>>

Re: The '$' and 'O' in the Linker's Additional Options got eaten by NetBeans

Posted by Heng Zhou <hz...@clemson.edu>.
That way, the option passed is "\\\RIGIN/LibDir".

On Mon, Apr 15, 2019 at 11:16 PM Tushar Joshi <tu...@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 <hz...@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.
>>
>

Re: The '$' and 'O' in the Linker's Additional Options got eaten by NetBeans

Posted by Tushar Joshi <tu...@gmail.com>.
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 <hz...@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.
>