Author Topic: Problem linking libbassenc_mp3.so (undefined references)  (Read 76 times)

mkllc

  • Posts: 40
Seems I have a problem linking with libbassenc_mp3.so (on linux x64)

Code: [Select]
/usr/bin/ld: libbassenc_mp3.so: undefined reference to `BASS_Encode_UserOutput'
/usr/bin/ld: libbassenc_mp3.so: undefined reference to `BASS_Encode_StartUser'

I use BASS_Encode_MP3_StartFile that invoques internally the other functions. I have the headers for bassenc, and bassenc_mp3 and both libraries for x64 and last version downloaded.

Very weird I never had a problem like this previously and I played with several libs around BASS. Exists any recent change that makes me link it in different way?

Update:

Weird, if I comment the BASS_Encode_MP3_StartFile I can see it links properly:

Code: [Select]
libbass.so => /lib/x86_64-linux-gnu/libbass.so (0x00007f5f039af000)
libbassenc.so => /lib/x86_64-linux-gnu/libbassenc.so (0x00007f5f037a5000)
libbassenc_mp3.so => /lib/x86_64-linux-gnu/libbassenc_mp3.so (0x00007f5f0356f000)

and I can call the BASS_Encode_MP3_GetVersion function but if I uncomment the BASS_Encode_MP3_StartFile the problem at linking appears again, I'm lost
« Last Edit: 6 May '21 - 00:53 by mkllc »

mkllc

  • Posts: 40
Seems it was related on some .o object that were not updated/cleaned by the cmake system. I removed all .o and tmp files and works now. Sorry, you can delete the thread if you consider. The lesson: don't play with code too late at night, even in case you're only playing with the code at home.