how to link math.h functions

hansfaust · 266

hansfaust

  • Newbie
  • *
    • Posts: 14
    • Karma: +0/-0
    • Homepage von Alfred Faust
on: March 31, 2020, 05:56:41 PM
Hi,
I working since some month on a complete port of the Multimedia-MIDI-sequencer BarsnPipes for AROS (ABIv0).
The Things are going very well. Now I have a problem. At one point the functions ceil () and exp () of math.h are called. The linker cannot find a solution for this ("there are undefined symbols ...").
What must be given here as a link library?

Alfred

BarsnPipes
the best Multimendia-MIDI-sequencer, ever made for AMIGA-like OSes


hansfaust

  • Newbie
  • *
    • Posts: 14
    • Karma: +0/-0
    • Homepage von Alfred Faust
Reply #1 on: April 01, 2020, 05:41:25 PM
After I messed around a  longer time, I found a method, to solve my problem by myself:

Include in the mysource.c

...
#include <proto/arosc.h>


Link with -larosc_rel

No more errormessage of the linker.

BarsnPipes
the best Multimendia-MIDI-sequencer, ever made for AMIGA-like OSes


deadwood

  • AROS Developer
  • Junior Member
  • *****
    • Posts: 96
    • Karma: +6/-0
Reply #2 on: April 01, 2020, 08:47:06 PM
Its suspicious that you have to do -larosc_rel. -larosc does not work?