LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-06-2006, 03:08 AM   #1
seleria
LQ Newbie
 
Registered: Nov 2006
Posts: 1

Rep: Reputation: 0
How to compile C program using the OSSP mm library and gcc?


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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc compile error with X11 library routines jrbrearley Programming 2 07-26-2006 01:50 PM
Can't compile c++ program using gcc pengu Programming 9 02-22-2006 01:59 PM
How to link a library to gcc? Andrea_81 Programming 6 05-05-2005 04:22 AM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 04:20 AM
Want to get GCC library help TamArasan Linux - Software 1 08-14-2003 08:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration