Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Redefined option.
Redefined option. [message #186356] Wed, 28 February 2007 06:17 Go to next message
Eclipse UserFriend
Hi, I use cygwin linker in my toolchain with redefined -L option value:

<tool
id="com.unitesk.secdt.buildDefinition.8"
superClass="cdt.managedbuild.tool.gnu.c.linker.cygwin.exe.release ">
<option
id="com.unitesk.secdt.buildDefinition.21"
superClass="gnu.cpp.link.option.paths">
<listOptionValue
value="/cygdrive/c/CTesK/lib/cygwin"
builtIn="false"/>
</option>
</tool>

Now linker invoked with "-L/cygdrive/c/CTesK/lib/cygwin" flag - thats
correct
In Project Properties>C++ Build>Tool Settings>GCC Linker>All Options I can
see -L/cygdrive/c/CTesK/lib/cygwin - thats correct too
BUT when I looked at Libraries subcategory of GCC Linker I see empty Library
list path - WHY SO?

Sergey Gomanyuk.
Re: Redefined option. [message #186372 is a reply to message #186356] Wed, 28 February 2007 08:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dmsubs.NOSPAM.consertum.com

> BUT when I looked at Libraries subcategory of GCC Linker I see empty Library
> list path - WHY SO?

Because you have defined your own option. The Library list path comes from the
standard option definition.
--
Derek


Sergey Gomanyuk wrote:
> Hi, I use cygwin linker in my toolchain with redefined -L option value:
>
> <tool
> id="com.unitesk.secdt.buildDefinition.8"
> superClass="cdt.managedbuild.tool.gnu.c.linker.cygwin.exe.release ">
> <option
> id="com.unitesk.secdt.buildDefinition.21"
> superClass="gnu.cpp.link.option.paths">
> <listOptionValue
> value="/cygdrive/c/CTesK/lib/cygwin"
> builtIn="false"/>
> </option>
> </tool>
>
> Now linker invoked with "-L/cygdrive/c/CTesK/lib/cygwin" flag - thats
> correct
> In Project Properties>C++ Build>Tool Settings>GCC Linker>All Options I can
> see -L/cygdrive/c/CTesK/lib/cygwin - thats correct too
> BUT when I looked at Libraries subcategory of GCC Linker I see empty Library
> list path - WHY SO?
>
> Sergey Gomanyuk.
>
>
Re: Redefined option. [message #186387 is a reply to message #186372] Wed, 28 February 2007 08:35 Go to previous messageGo to next message
Eclipse UserFriend
"Derek Morris" <dmsubs@NOSPAM.consertum.com> wrote in message
news:es3vap$qsb$1@utils.eclipse.org...
> > BUT when I looked at Libraries subcategory of GCC Linker I see empty
> > Library
> > list path - WHY SO?
>
> Because you have defined your own option. The Library list path comes from
> the standard option definition.
> --
> Derek
>

Thank You for your answer, but I still confused:
1. Is there a way just to redefine The Library list path without creating
new option?
2. If I add new option that is just a copy why I have ui only for inherited
option but haven't ui for copy?

>
> Sergey Gomanyuk wrote:
>> Hi, I use cygwin linker in my toolchain with redefined -L option value:
>>
>> <tool
>> id="com.unitesk.secdt.buildDefinition.8"
>> superClass="cdt.managedbuild.tool.gnu.c.linker.cygwin.exe.release ">
>> <option
>> id="com.unitesk.secdt.buildDefinition.21"
>> superClass="gnu.cpp.link.option.paths">
>> <listOptionValue
>> value="/cygdrive/c/CTesK/lib/cygwin"
>> builtIn="false"/>
>> </option>
>> </tool>
>>
>> Now linker invoked with "-L/cygdrive/c/CTesK/lib/cygwin" flag - thats
>> correct
>> In Project Properties>C++ Build>Tool Settings>GCC Linker>All Options I
>> can see -L/cygdrive/c/CTesK/lib/cygwin - thats correct too
>> BUT when I looked at Libraries subcategory of GCC Linker I see empty
>> Library list path - WHY SO?
>>
>> Sergey Gomanyuk.
>>
Re: Redefined option. [message #186415 is a reply to message #186387] Wed, 28 February 2007 10:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dmsubs.NOSPAM.consertum.com

You need to override the existing defintion (by adding superClass=xxx in your
definition.

Look in org.eclipse.cdt.managedbuilder.gnu/plugin.xml to find xxx.

--
Derek


Sergey Gomanyuk wrote:
> "Derek Morris" <dmsubs@NOSPAM.consertum.com> wrote in message
> news:es3vap$qsb$1@utils.eclipse.org...
>>> BUT when I looked at Libraries subcategory of GCC Linker I see empty
>>> Library
>>> list path - WHY SO?
>> Because you have defined your own option. The Library list path comes from
>> the standard option definition.
>> --
>> Derek
>>
>
> Thank You for your answer, but I still confused:
> 1. Is there a way just to redefine The Library list path without creating
> new option?
> 2. If I add new option that is just a copy why I have ui only for inherited
> option but haven't ui for copy?
>
>> Sergey Gomanyuk wrote:
>>> Hi, I use cygwin linker in my toolchain with redefined -L option value:
>>>
>>> <tool
>>> id="com.unitesk.secdt.buildDefinition.8"
>>> superClass="cdt.managedbuild.tool.gnu.c.linker.cygwin.exe.release ">
>>> <option
>>> id="com.unitesk.secdt.buildDefinition.21"
>>> superClass="gnu.cpp.link.option.paths">
>>> <listOptionValue
>>> value="/cygdrive/c/CTesK/lib/cygwin"
>>> builtIn="false"/>
>>> </option>
>>> </tool>
>>>
>>> Now linker invoked with "-L/cygdrive/c/CTesK/lib/cygwin" flag - thats
>>> correct
>>> In Project Properties>C++ Build>Tool Settings>GCC Linker>All Options I
>>> can see -L/cygdrive/c/CTesK/lib/cygwin - thats correct too
>>> BUT when I looked at Libraries subcategory of GCC Linker I see empty
>>> Library list path - WHY SO?
>>>
>>> Sergey Gomanyuk.
>>>
>
Re: Redefined option. [message #186435 is a reply to message #186415] Wed, 28 February 2007 11:26 Go to previous messageGo to next message
Eclipse UserFriend
> You need to override the existing defintion (by adding superClass=xxx in
> your definition.
>
> Look in org.eclipse.cdt.managedbuilder.gnu/plugin.xml to find xxx.
>

Well, I've already used superClass with classes from
org.eclipse.cdt.managedbuilder.gnu/plugin.xml , just look at my definition
again:
>>>> <tool
>>>> id="com.unitesk.secdt.buildDefinition.8"
>>>>
>>>> superClass="cdt.managedbuild.tool.gnu.c.linker.cygwin.exe.release ">
>>>> <option
>>>> id="com.unitesk.secdt.buildDefinition.21"
>>>> superClass="gnu.cpp.link.option.paths">
>>>> <listOptionValue
>>>> value="/cygdrive/c/CTesK/lib/cygwin"
>>>> builtIn="false"/>
>>>> </option>
>>>> </tool>

I need to redefine "The Library list path" of GCC linker in my toolchain and
now linker successfully invoked with -L/cygdrive/c/CTesK/lib/cygwin.
BUT in UI "The Library list path" is EMPTY!
If it is extended option in UI, where is UI for my new option? If it is my
redefined option in UI where is its value "/cygdrive/c/CTesK/lib/cygwin"?

-------
Sergey
Re: Redefined option. [message #187098 is a reply to message #186435] Tue, 06 March 2007 08:04 Go to previous message
Eclipse UserFriend
I've found out what the problem was!
The C linkers was extended but option from CPP linker was used. I've changed
gnu.cpp.link.option.paths to gnu.c.link.option.paths and now all ok!

>
> Well, I've already used superClass with classes from
> org.eclipse.cdt.managedbuilder.gnu/plugin.xml , just look at my definition
> again:
>>>>> <tool
>>>>> id="com.unitesk.secdt.buildDefinition.8"
>>>>>
>>>>> superClass="cdt.managedbuild.tool.gnu.c.linker.cygwin.exe.release ">
>>>>> <option
>>>>> id="com.unitesk.secdt.buildDefinition.21"
>>>>> superClass="gnu.cpp.link.option.paths">
>>>>> <listOptionValue
>>>>> value="/cygdrive/c/CTesK/lib/cygwin"
>>>>> builtIn="false"/>
>>>>> </option>
>>>>> </tool>
>
Previous Topic:CDT console - Setting color for lines with error doesn't work
Next Topic:Build my own project template.
Goto Forum:
  


Current Time: Sat Aug 30 00:02:20 EDT 2025

Powered by FUDForum. Page generated in 0.07362 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top