AROS Exec

Development => AROS Software Development => Topic started by: hansfaust on March 31, 2020, 05:56:41 PM

Title: how to link math.h functions
Post by: hansfaust 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
Title: Re: how to link math.h functions
Post by: hansfaust 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.
Title: Re: how to link math.h functions
Post by: deadwood on April 01, 2020, 08:47:06 PM
Its suspicious that you have to do -larosc_rel. -larosc does not work?