Error during mex simulateMS.c for delsig toolbox in 2019a version
6 views (last 30 days)
Show older comments
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
on 7 Jul 2022
double drand48 (void)
{
return (((double) (rand ( ))) / ((double) RAND_MAX)) ;
}
add this simulatems.C
Answers (0)
See Also
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!