blackberry/Lua — Issue #2: Failed to build Lua
Author: micrcx
Created: 2012-01-07 16:07:31+00:00
State: open

I failed to build application. When you compile the project the following errors were detected:

C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lua.c:377: multiple definition of `main'
src\luac.o:C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/luac.c:187: first defined here
src\loslib.o: In function `os_tmpname':
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/loslib.c:60: warning: The 'tmpnam' function is dangerous. Use 'mkstemp' instead.
src\lvm.o: In function `Arith':
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lvm.c:325: undefined reference to `floor'
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lvm.c:326: undefined reference to `pow'
src\lvm.o: In function `luaV_execute':
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lvm.c:487: undefined reference to `floor'
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lvm.c:491: undefined reference to `pow'
src\lmathlib.o: In function `math_sin':
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lmathlib.c:32: undefined reference to `_Sin'
src\lmathlib.o: In function `math_sinh':
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lmathlib.c:37: undefined reference to `_Sinh'
src\lmathlib.o: In function `math_cos':
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lmathlib.c:42: undefined reference to `_Sin'
src\lmathlib.o: In function `math_cosh':
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lmathlib.c:47: undefined reference to `_Cosh'
src\lmathlib.o: In function `math_tan':
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lmathlib.c:52: undefined reference to `tan'
src\lmathlib.o: In function `math_tanh':
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lmathlib.c:57: undefined reference to `tanh'
src\lmathlib.o: In function `math_asin':
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lmathlib.c:62: undefined reference to `asin'
src\lmathlib.o: In function `math_acos':
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lmathlib.c:67: undefined reference to `acos'
src\lmathlib.o: In function `math_atan':
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lmathlib.c:72: undefined reference to `atan'
src\lmathlib.o: In function `math_atan2':
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lmathlib.c:77: undefined reference to `atan2'
src\lmathlib.o: In function `math_ceil':
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lmathlib.c:82: undefined reference to `ceil'
src\lmathlib.o: In function `math_floor':
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lmathlib.c:87: undefined reference to `floor'
src\lmathlib.o: In function `math_fmod':
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lmathlib.c:92: undefined reference to `fmod'
src\lmathlib.o: In function `math_modf':
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lmathlib.c:98: undefined reference to `modf'
src\lmathlib.o: In function `math_sqrt':
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lmathlib.c:105: undefined reference to `sqrt'
src\lmathlib.o: In function `math_pow':
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lmathlib.c:110: undefined reference to `pow'
src\lmathlib.o: In function `math_log':
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lmathlib.c:115: undefined reference to `_Log'
src\lmathlib.o: In function `math_log10':
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lmathlib.c:120: undefined reference to `_Log'
src\lmathlib.o: In function `math_exp':
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lmathlib.c:125: undefined reference to `exp'
src\lmathlib.o: In function `math_frexp':
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lmathlib.c:141: undefined reference to `frexp'
src\lmathlib.o: In function `math_ldexp':
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lmathlib.c:147: undefined reference to `ldexp'
src\lmathlib.o: In function `math_random':
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lmathlib.c:193: undefined reference to `floor'
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lmathlib.c:200: undefined reference to `floor'
src\lcode.o: In function `constfolding':
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lcode.c:649: undefined reference to `floor'
C:\Blackberry\NDK.100.WorkSpace\Lua\Device-Debug/..\src/lcode.c:650: undefined reference to `pow'
cc: C:/Blackberry/host/win32/x86/usr/bin/ntoarm-ld caught signal 1
Build error occurred, build is stopped
Time consumed: 35065 ms.