When trying to compile the example code from the above tutorial on a Debian Sid box, I get the following linker error:
In an attempt to correct the problem I added "-lX11" to "LIBS +=" in the make file. The code then links without error but I get the following run time error:Code :==== Building framework (release) ==== ==== Building Tut 01 Main (release) ==== Creating obj/Release tut1.cpp Linking Tut 01 Main /usr/bin/ld: ../glsdk/freeglut/lib/libfreeglut.a(freeglut_window.o): undefined reference to symbol 'XGetWindowAttributes' /usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status
Code :~/Tutorial 0.3.8/Tut 01 Hello Triangle$ ./Tut\ 01\ Main Inconsistency detected by ld.so: dl-version.c: 224: _dl_check_map_versions: Assertion `needed != ((void *)0)' failed!
Any advice on how to solve this?
Thanks in advance.