[Disksim-users] Compile error

Alireza Haghdoost haghdoost at gmail.com
Tue Dec 6 11:14:13 EST 2011


update your makefile with the following lines:

mems_seektest: mems_seektest.o libmems_internals.a
        $(CC) -o $@ mems_seektest.o  $(CFLAGS) -lmems_internals $(LDFLAGS)


2011/12/6 Sergey Gordok <sergey.gordok at gmail.com>

> Hi all,
>
> I'm trying to compile the DiskSim 4.0 and have the following error:
>
> "...memsmodel/mems_piecewise_seek.c:524: undefined reference to `sqrt'"
>
> and so on... (see the log file)
>
> It seems to be a problem with the mathlib link, however I've check in
> the makefile, and there is all ok (i.g. gcc -lm ...).
>
> I'm actually not very familar with C/C++ and linux systems, so I'm in
> trouble :)
>
> Can anyone help me?
>
> My system is:
>
> ubuntu 11.10 x64
> DiskSim 4.0. (with x64 patch)
> gcc, g++ 4.6
> flex, bison 2.5
> IDE Anjuta
>
>
> Thanks a lot!
>
> Best
> Sergey
>
> _______________________________________________
> Disksim-users mailing list
> Disksim-users at ece.cmu.edu
> https://sos.ece.cmu.edu/mailman/listinfo/disksim-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/disksim-users/attachments/20111206/8947dabd/attachment.html>


More information about the Disksim-users mailing list