I'm struggling to resolve a linker error.
The (probable) file in question is:[manasij7479@manasijd Tutorial 0.3.8]$ make config=debug
==== Building framework (debug) ====
==== Building Tut 16 Gamma Ramp (debug) ====
Linking Tut 16 Gamma Ramp
/usr/bin/ld: ../glsdk/freeglut/lib/libfreeglutD.a(freeglut_main.o): undefined reference to symbol 'XPending'
/usr/bin/ld: note: 'XPending' is defined in DSO /usr/lib/libX11.so.6 so try adding it to the linker command line
/usr/lib/libX11.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [Tut 16 Gamma RampD] Error 1
make: *** [Tut 16 Gamma Ramp] Error 2
I thought that adding "X11" in line 28 would do it, but got the exact same error.Code:solution "freeglut" configurations {"Debug", "Release"} defines {"_CRT_SECURE_NO_WARNINGS", "_SCL_SECURE_NO_WARNINGS"} dofile("freeglut.lua"); local dirs = os.matchdirs("progs/demos/*") for i, dir in ipairs(dirs) do local baseDir = path.getname(dir); if(baseDir ~= "bin" and baseDir ~= "obj") then project(baseDir) kind "ConsoleApp" language "c" includedirs {"include"} targetdir(dir) objdir(dir .. "/obj") files {dir .. "/*.c"}; defines {"FREEGLUT_STATIC", "_LIB", "FREEGLUT_LIB_PRAGMAS=0"} links {"freeglut"} configuration "windows" defines "WIN32" links {"glu32", "opengl32", "gdi32", "winmm", "user32"} configuration "linux" links {"GL"} configuration "Debug" targetsuffix "D" defines "_DEBUG" flags "Symbols" configuration "Release" defines "NDEBUG" flags {"OptimizeSpeed", "NoFramePointer", "ExtraWarnings", "NoEditAndContinue"}; end end
The source is here, if anyone of you want to try building it on linux.



LinkBack URL
About LinkBacks



