Fixing compilation on linux. Needed forward slashes on includes, and -lm for linking math libraries.

Getting warning about lua's use of tmpnam, and to use mkstmp instead..  Not sure I care.
This commit is contained in:
paul eeepc 2017-07-05 02:49:52 -05:00
parent 8efdc95748
commit 0b2aac8b52
2 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ all: shared
#unix build doesn't need winlib directory as libusb should be installed on OS.
#sudo apt-get install libusb-1.0-0-dev
unix: shared
$(CC) $(INCLUDE) $(SOURCES) -o $(TARGET) $(CFLAGS) $(LIBUSB)
$(CC) $(INCLUDE) $(SOURCES) -o $(TARGET) $(CFLAGS) -lm $(LIBUSB)
# "make debug" will build program with debug print messages
# -DDEBUG show debug logs

View File

@ -24,9 +24,9 @@
#include "shared_enums.h"
//lua libraries
#include "lua\lua.h"
#include "lua\lauxlib.h"
#include "lua\lualib.h"
#include "lua/lua.h"
#include "lua/lauxlib.h"
#include "lua/lualib.h"
void error (lua_State *L, const char *fmt, ...) {
va_list argp;