how to link math.h functions

hansfaust · 1158

hansfaust

  • Newbie
  • *
    • Posts: 14
    • Karma: +1/-0
    • Homepage von Alfred Faust
on: March 31, 2020, 10:56:41 AM
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: +1/-0
    • Homepage von Alfred Faust
Reply #1 on: April 01, 2020, 10:41:25 AM
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
  • Legendary Member
  • *****
    • Posts: 1524
    • Karma: +118/-0
Reply #2 on: April 01, 2020, 01:47:06 PM
Its suspicious that you have to do -larosc_rel. -larosc does not work?