Glew 2.1.0 (Slackware current), weird unresolved symbol woes.
by Geist from LinuxQuestions.org on (#4PVQV)
Got a little GL pet project that used to work just fine, but after a hiatus from it, and some updates to current , this happens:
Code:|| /usr/bin/ld: CMakeFiles/spacemen.dir/src/renderer_sdl.cpp.o: undefined reference to symbol '__glewDeleteRenderbuffers'
|| /usr/bin/ld: /usr/lib64/libGLEW.so.2.1: error adding symbols: DSO missing from command lineSays the symbol isn't defined.
However:
Code:readelf -Ws /usr/lib64/libGLEW.so | grep -i deleteren
60: 00000000002ab7a0 8 OBJECT GLOBAL DEFAULT 24 __glewDeleteRenderbuffers
475: 00000000002a9898 8 OBJECT GLOBAL DEFAULT 24 __glewDeleteRenderbuffersEXTCompiler is: gcc-g++-9.2.0_multilib-x86_64-1alien, and all the linker settings *should* be okay.
Am I missing something here? This has me confused enough that I'm not even sure about additional infos I could be giving right now.


Code:|| /usr/bin/ld: CMakeFiles/spacemen.dir/src/renderer_sdl.cpp.o: undefined reference to symbol '__glewDeleteRenderbuffers'
|| /usr/bin/ld: /usr/lib64/libGLEW.so.2.1: error adding symbols: DSO missing from command lineSays the symbol isn't defined.
However:
Code:readelf -Ws /usr/lib64/libGLEW.so | grep -i deleteren
60: 00000000002ab7a0 8 OBJECT GLOBAL DEFAULT 24 __glewDeleteRenderbuffers
475: 00000000002a9898 8 OBJECT GLOBAL DEFAULT 24 __glewDeleteRenderbuffersEXTCompiler is: gcc-g++-9.2.0_multilib-x86_64-1alien, and all the linker settings *should* be okay.
Am I missing something here? This has me confused enough that I'm not even sure about additional infos I could be giving right now.