[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Linking frameworks does not work
From: |
Wolfgang Lux |
Subject: |
Re: Linking frameworks does not work |
Date: |
Wed, 2 May 2018 15:36:31 +0200 |
> Am 02.05.2018 um 15:30 schrieb Andreas Höschler <ahoesch@smartsoft.de>:
>
> Hi Wolfgang,
>
>>> I have Window Maker running now and Fred resize.app but still wasn't able
>>> to get one of my own apps to work that need to be linked against my
>>> frameworks. The test app links against gui and base but not any of the
>>> listed frameworks SRFoundation, SREnterprise,...
>>
>> That very much sounds like the code of your test app does not use any code
>> from these frameworks.
>> Keep in mind that libraries linked with -l options are used only to resolve
>> unresolved symbols in the code. If a library does not provide any such
>> symbols it is ignored and will not be included in the final executable.
>
> That's not the case. The code is used. When executing the resulting binary I
> get tons of "... does not recognize selector ..." exceptions!? :-(
Selectors do not count here. They are only resolved at runtime not a link time.
You would need an explicit reference to a class, function or global variable
from your frameworks inside the code of the test application to have the linker
include those libraries in the executable.
Wolfgang
- Linking frameworks does not work, Andreas Höschler, 2018/05/02
- Re: Linking frameworks does not work, Wolfgang Lux, 2018/05/02
- Re: Linking frameworks does not work, Andreas Höschler, 2018/05/02
- Re: Linking frameworks does not work,
Wolfgang Lux <=
- Re: Linking frameworks does not work, Andreas Höschler, 2018/05/02
- Re: Linking frameworks does not work, Andreas Fink, 2018/05/02
- Re: Linking frameworks does not work, Andreas Höschler, 2018/05/02
- Re: Linking frameworks does not work, Andreas Fink, 2018/05/02
- Re: Linking frameworks does not work, Andreas Höschler, 2018/05/02
- Re: Linking frameworks does not work, Wolfgang Lux, 2018/05/02
- Re: Linking frameworks does not work, Andreas Höschler, 2018/05/02
- Re: Linking frameworks does not work, Richard Frith-Macdonald, 2018/05/02
- Re: Linking frameworks does not work, Wolfgang Lux, 2018/05/06
- Re: Linking frameworks does not work, Andreas Höschler, 2018/05/02