Author Topic: Problem linking (undefined references)  (Read 77 times)


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

Code: [Select]
/usr/bin/ld: undefined reference to `BASS_Encode_UserOutput'
/usr/bin/ld: 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?


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

Code: [Select] => /lib/x86_64-linux-gnu/ (0x00007f5f039af000) => /lib/x86_64-linux-gnu/ (0x00007f5f037a5000) => /lib/x86_64-linux-gnu/ (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 »


  • 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.