Author Topic: Getting "undefined references" when linking to libbass.so  (Read 169 times)

DrakeTungsten

  • Posts: 2
I am getting undefined references to all of the BASS functions in 64-bit Linux (Xubuntu 18.04) when I link. I have libbass.so and libbassflac.so in the same folder as my project, so I tried both "-L." and "-L/absolute/path" flags, coupled with the flags "-lbass -lbassflac", but still get the undefined references.  Any help would be appreciated.

DrakeTungsten

  • Posts: 2
Never mind. The problem is my inexperience with linking. I needed to include the library linking flags at the end of the link command.