• 欢迎浏览“String me = Creater\忠实的资深Linux玩家;”,请文明浏览,理性发言,有侵犯你的权益请邮件我(creater@vip.qq.com).
  • 把任何的失败都当作一次尝试,不要自卑;把所有的成功都想成是一种幸运,不要自傲。
  •    5年前 (2013-08-28)  开源项目 |   抢沙发  21 
    文章评分 0 次,平均分 0.0

    Has anyone here have any experience using OSSP mm library?

    The documentation is very limited for someone like me who is new to linux and c programming.

    The installation procedure is as follows:
    $ ./configure --prefix=/path/to/mm
    $ make
    $ make test
    $ make install

    but I changed /path/to/mm to /usr/local/
    I did the other things accordingly and executed the test code successfully.

    The OSSP mm library comes with mm-config which is (taken from the mm-config man page):
    "The mm-config program is a little helper utility for easy configuring and building applications based on the mm(3) library. It can be used to query the C compiler and linker flags which are required to correctly compile and link the application against the mm(3) library."

    It also contains a sample on how to use the mm-config:
    CC=cc
    CFLAGS=-O `mm-config --cflags`
    LDFLAGS=`mm-config --ldflags`
    LIBS=-lm `mm-config --libs`
    all: foo
    foo: foo.o
    $(CC) $(LDFLAGS) -o foo foo.o $(LIBS)
    foo.o: foo.c
    $(CC) $(CFLAGS) -c foo.c

    I tried to follow this sample, however I cannot seem to successfully execute my code and it produces the following error:

    [aky@snoopy test]$ error while loading shared libraries: libmm.so.14: cannot open shared object file: No such file or directory

    Kindly tell me what I am doing wrong.

    Also, if anyone could tutor me on how to use OSSP mm or provide me with sample codes or direct me to OSSP mm support groups, it would be greatly appreciated.

    Thanks in advance

     

    除特别注明外,本站所有文章均为String me = "Creater\忠实的资深Linux玩家";原创,转载请注明出处来自http://unix8.net/home.php/1884.html

    关于

    发表评论

    暂无评论

    切换注册

    登录

    忘记密码 ?

    切换登录

    注册

    扫一扫二维码分享