How do I install a c++ library so I can use it?

前端 未结 4 1970
情深已故
情深已故 2021-01-31 08:34

I have this library called BASS which is an audio library which I\'m going to use to record with the microphone. I have all the files needed to use it, but I don\'t know how to

4条回答
  •  梦毁少年i
    2021-01-31 09:25

    If there are files named configure, Makefile or install you can try running them in that order. After that, any program that wants to link with this library must use a command like this:

    c++  -l -L
    

    The library path is usually the original library folder itself, unless you explicitly change it or the library itself puts its files in global locations like /usr/local or something like that.

提交回复
热议问题