undefined reference to `log'

前端 未结 1 1317
失恋的感觉
失恋的感觉 2021-01-31 17:11

I am trying to compile the implementation of the RFC 3797 random selection algorithm by Donald Eastlake (code: http://kambing.ui.ac.id/minix/other/rfc3797/). However, I am getti

相关标签:
1条回答
  • 2021-01-31 17:49

    I don't know what the reason is, but if you move -lm to the end, it will compile.

    $ cc -o randomselection rfc3797.c MD5.c -lm
    rfc3797.c: In function ‘getinteger’:
    rfc3797.c:183:3: warning: format not a string literal and no format arguments [-Wformat-security]
    
    0 讨论(0)
提交回复
热议问题