Error during mex simulateMS.c for delsig toolbox in 2019a version

6 views (last 30 days)
Hi,
I am using delsig (delta sigma modulator) toolbox. While I was compiling simulateMS.c, I got the following error.
Error using mex
C:\Users\user\AppData\Local\Temp\mex_437308251802604_6944\simulateMS.obj:simulateMS.c:(.text+0x10f6): undefined reference
to `drand48'
collect2.exe: error: ld returned 1 exit status
Please resolve this error.
  1 Comment
adam hgj
adam hgj on 7 Jul 2022
double drand48 (void)
{
return (((double) (rand ( ))) / ((double) RAND_MAX)) ;
}
add this simulatems.C

Sign in to comment.

Answers (0)

Categories

Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!