New problem, tried installing various math libraries but still getting this output:
Code:
make (in directory: /media/zxuiji/ZXUIJI_1TB/github/lu/lu)
DRIVE=/media/zxuiji/ZXUIJI_1TB
Compiling Lu Executable
gcc -Wall -Werror -o "/media/zxuiji/ZXUIJI_1TB/common/lu/lu.elf" obj/lu.c.o obj/luat.c.o obj/ludir.c.o obj/lufile.c.o obj/LuScript.c.o obj/lua/ltable.c.o obj/lua/liolib.c.o obj/lua/lopcodes.c.o obj/lua/lmem.c.o obj/lua/loslib.c.o obj/lua/lcorolib.c.o obj/lua/ldebug.c.o obj/lua/ltm.c.o obj/lua/loadlib.c.o obj/lua/linit.c.o obj/lua/lmathlib.c.o obj/lua/lctype.c.o obj/lua/lstate.c.o obj/lua/lstrlib.c.o obj/lua/lgc.c.o obj/lua/lvm.c.o obj/lua/lutf8lib.c.o obj/lua/lbaselib.c.o obj/lua/llex.c.o obj/lua/ldblib.c.o obj/lua/ltablib.c.o obj/lua/lbitlib.c.o obj/lua/lstring.c.o obj/lua/lauxlib.c.o obj/lua/lparser.c.o obj/lua/lundump.c.o obj/lua/ldo.c.o obj/lua/lapi.c.o obj/lua/lzio.c.o obj/lua/lcode.c.o obj/lua/lobject.c.o obj/lua/lfunc.c.o obj/lua/ldump.c.o
obj/lua/loslib.c.o: In function `os_tmpname':
loslib.c:(.text+0x177): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
obj/lua/lmathlib.c.o: In function `math_sin':
lmathlib.c:(.text+0xb4): undefined reference to `sin'
obj/lua/lmathlib.c.o: In function `math_cos':
lmathlib.c:(.text+0xe9): undefined reference to `cos'
obj/lua/lmathlib.c.o: In function `math_tan':
lmathlib.c:(.text+0x11e): undefined reference to `tan'
obj/lua/lmathlib.c.o: In function `math_asin':
lmathlib.c:(.text+0x153): undefined reference to `asin'
obj/lua/lmathlib.c.o: In function `math_acos':
lmathlib.c:(.text+0x188): undefined reference to `acos'
obj/lua/lmathlib.c.o: In function `math_atan':
lmathlib.c:(.text+0x206): undefined reference to `atan2'
obj/lua/lmathlib.c.o: In function `math_floor':
lmathlib.c:(.text+0x37c): undefined reference to `floor'
obj/lua/lmathlib.c.o: In function `math_ceil':
lmathlib.c:(.text+0x3ef): undefined reference to `ceil'
obj/lua/lmathlib.c.o: In function `math_fmod':
lmathlib.c:(.text+0x511): undefined reference to `fmod'
obj/lua/lmathlib.c.o: In function `math_modf':
lmathlib.c:(.text+0x5a2): undefined reference to `ceil'
lmathlib.c:(.text+0x5bb): undefined reference to `floor'
obj/lua/lmathlib.c.o: In function `math_sqrt':
lmathlib.c:(.text+0x64b): undefined reference to `sqrt'
obj/lua/lmathlib.c.o: In function `math_log':
lmathlib.c:(.text+0x707): undefined reference to `log'
lmathlib.c:(.text+0x75f): undefined reference to `log2'
lmathlib.c:(.text+0x79a): undefined reference to `log10'
lmathlib.c:(.text+0x7b7): undefined reference to `log'
lmathlib.c:(.text+0x7ce): undefined reference to `log'
obj/lua/lmathlib.c.o: In function `math_exp':
lmathlib.c:(.text+0x822): undefined reference to `exp'
obj/lua/lvm.c.o: In function `luaV_tointeger':
lvm.c:(.text+0x13b): undefined reference to `floor'
obj/lua/lvm.c.o: In function `luaV_execute':
lvm.c:(.text+0x3ebc): undefined reference to `fmod'
lvm.c:(.text+0x415d): undefined reference to `floor'
lvm.c:(.text+0x432a): undefined reference to `pow'
obj/lua/lobject.c.o: In function `numarith':
lobject.c:(.text+0x292): undefined reference to `pow'
lobject.c:(.text+0x2ab): undefined reference to `floor'
makefile:47: recipe for target '/media/zxuiji/ZXUIJI_1TB/common/lu/lu.elf' failed
lobject.c:(.text+0x2e5): undefined reference to `fmod'
collect2: error: ld returned 1 exit status
make: *** [/media/zxuiji/ZXUIJI_1TB/common/lu/lu.elf] Error 1
Compilation failed.
The lua stuff should compile fine once the right math library is installed but I can't figure out which one, any ideas?