undefined reference to `DynLoadBase'
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    deka
    Posts: 136 from 2013/2/12
    From: Hungary, Kecsk...
    I'd like to create a program which uses dlopen/dlerror/dlsym/dlclose.
    I receive this message by linking.

    Which library do I have to link?
  • »24.01.17 - 12:21
    Profile
  • MorphOS Developer
    CISC
    Posts: 619 from 2005/8/27
    From: the land with ...
    -ldl_shared


    - CISC
  • »24.01.17 - 12:43
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    deka
    Posts: 136 from 2013/2/12
    From: Hungary, Kecsk...
    Quote:

    CISC wrote:
    -ldl_shared

    - CISC


    Thanx!
  • »24.01.17 - 12:48
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    deka
    Posts: 136 from 2013/2/12
    From: Hungary, Kecsk...
    Quote:

    CISC wrote:
    -ldl_shared


    - CISC


    No such file or directory.
  • »24.01.17 - 18:14
    Profile
  • MorphOS Developer
    Henes
    Posts: 507 from 2003/6/14
    That would be -ldl but not sure it's part of the SDK.
  • »24.01.17 - 18:54
    Profile Visit Website
  • MorphOS Developer
    CISC
    Posts: 619 from 2005/8/27
    From: the land with ...
    Quote:

    deka wrote:
    No such file or directory.



    There's a couple of possibilities:

    1. It's only available when you build with -noixemul
    2. It's not included in the SDK at all for some reason

    The solution for 1 should be obvious, for 2; try building with -D__MORPHOS_SHAREDLIBS


    - CISC
  • »25.01.17 - 04:56
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    deka
    Posts: 136 from 2013/2/12
    From: Hungary, Kecsk...
    @CISC:
    It is compiled with -noixemul and the -D option also doesn't help... :(
    Any idea?


    @Henes:
    "No such file or directory." for -ldl
  • »25.01.17 - 06:58
    Profile
  • MorphOS Developer
    jacadcaps
    Posts: 3146 from 2003/3/5
    From: Canada
    Sorry, the lib was not part of the SDK - I've just fixed that though so it'll appear in the next one.

    Meanwhile, msg me with your email so I can send you the lib.
  • »26.01.17 - 03:04
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    deka
    Posts: 136 from 2013/2/12
    From: Hungary, Kecsk...
    Quote:

    jacadcaps wrote:
    Sorry, the lib was not part of the SDK - I've just fixed that though so it'll appear in the next one.

    Meanwhile, msg me with your email so I can send you the lib.


    Ok... There isn't any urgent about it. ;)
    If the new SDK comes in the next couple of months, it is OK for me.
  • »26.01.17 - 06:50
    Profile