Use .a library in AmigaE?
  • Order of the Butterfly
    Order of the Butterfly
    asrael22
    Posts: 175 from 2014/6/11
    From: Germany
    Hi.

    Is it possible to use a custom C++ compiled library in AmigaE/ECX?


    Manfred
  • »27.03.17 - 17:45
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    r-tea
    Posts: 251 from 2005/3/27
    From: Opole, Poland
    Quote:

    asrael22 wrote:
    Hi.

    Is it possible to use a custom C++ compiled library in AmigaE/ECX?


    Manfred


    Do you mean AmigaOS compatible libraries, for example powersdl.library or ttengine.library? If you do, then yes. No matter what language were used to compile the library.


    [ Edited by r-tea 27.03.2017 - 20:35 ]

    I miss draggable screens... and do you? I know I'm in a minority unfortunately.
  • »27.03.17 - 19:34
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    asrael22
    Posts: 175 from 2014/6/11
    From: Germany
    Quote:

    r-tea wrote:
    Quote:

    asrael22 wrote:
    Hi.

    Is it possible to use a custom C++ compiled library in AmigaE/ECX?


    Manfred


    Do you mean AmigaOS compatible libraries, for example powersdl.library or ttengine.library? If you do, then yes. No matter what language were used to compile the library.


    Well. On MorphOS it seems .a (library archives) are compatible libraries as well for linking.
    Maybe my question should be how to make a .a archive to an AmigaOS library (.library).


    Manfred
  • »27.03.17 - 19:52
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    pegasos-sigi2
    Posts: 239 from 2006/8/31
    Quote:

    asrael22 wrote:
    Quote:

    r-tea wrote:
    Quote:

    asrael22 wrote:
    Hi.

    Is it possible to use a custom C++ compiled library in AmigaE/ECX?


    Manfred


    Do you mean AmigaOS compatible libraries, for example powersdl.library or ttengine.library? If you do, then yes. No matter what language were used to compile the library.


    Well. On MorphOS it seems .a (library archives) are compatible libraries as well for linking.
    Maybe my question should be how to make a .a archive to an AmigaOS library (.library).


    Manfred


    R-Tea did't Unterstand your qestion.
    Spreedy - The spreedsheet editor of MorphOS
    Calimero - Do you know about the new DTP Program for MorphOS ?
  • »29.03.17 - 13:46
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    asrael22
    Posts: 175 from 2014/6/11
    From: Germany
    Could be.
    I'll try again.

    I have a C++ project here, as a makefile. Which, when I compile it I'll get a .a file, a library archive, which I'd link against when using this library from another C/C++ source.
    But how, or is it even possible at all, do I use this in an AmigaE project?


    Manfred
  • »29.03.17 - 20:25
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    polluks
    Posts: 261 from 2007/10/23
    From: Gelsenkirchen,...
    The E compiler is well known for its simplicity, there's no linker, so no link library support.
    You may create an Amiga library of course...
    Pegasos II G4: MorphOS 3.9, Zalman M220W
    Power Mac G3: OSX 10.3 · PowerBook 5,8: OSX 10.5, MorphOS 3.9
  • »31.03.17 - 22:28
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    asrael22
    Posts: 175 from 2014/6/11
    From: Germany
    Quote:

    polluks wrote:
    The E compiler is well known for its simplicity, there's no linker, so no link library support.
    You may create an Amiga library of course...


    The RKRM contains a small example for how to create libraries.
    Is that different on MorphOS?


    Manfred
  • »01.04.17 - 12:40
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    polluks
    Posts: 261 from 2007/10/23
    From: Gelsenkirchen,...
    Take a look
    Code:
    > dir SDK:Examples/Library/
    skeleton (dir)
    relskeleton (dir)
    nixskeleton (dir)
    newskeleton (dir)
    cppskeleton (dir)

    or LibMaker

    [ Editiert durch polluks 01.04.2017 - 14:19 ]
    Pegasos II G4: MorphOS 3.9, Zalman M220W
    Power Mac G3: OSX 10.3 · PowerBook 5,8: OSX 10.5, MorphOS 3.9
  • »01.04.17 - 13:03
    Profile