How to add libraries to c/c++ in ubuntu 8.04

Asked by novice

I have installed all the required packages for c/c++ as well as Anjuta IDE in Ubuntu 8.04. I want to add some midi libraries (e.g.libjdkmidi etc.) to c/c++. How can i do this?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu anjuta Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

You can always search into repository, using terminal, with:

aptitude search something

Example:

aptitude search midi

Or to filter result:

aptitude search mid | grep -i lib

You might be interest to the dev packages...

But sometimes you need external libraries not included into repositories so you must search them from the net.

http://www.jdkoftinoff.com/main/Free_Projects/C++_MIDI_Library/

Hope this helps

Revision history for this message
novice (nnnn-2006) said :
#2

 I actually mean how to add external midi libraries (e.g.libjdkmidi etc.) to c/c++ in Ubuntu 8.04.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#3

Taked from http://www.jdkoftinoff.com/main/Free_Projects/C++_MIDI_Library/

Add the include directory:
    -I /libjdkmidi/include

Add the library directory:
    -L /libjdkmidi/lib

Link with libjdkmidi:
    -l jdkmidi

All symbols are in the c++ namespace jdkmidi

Hope this helps

Can you help with this problem?

Provide an answer of your own, or ask novice for more information if necessary.

To post a message you must log in.