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:
parent
8efdc95748
commit
0b2aac8b52
|
|
@ -17,7 +17,7 @@ all: shared
|
||||||
#unix build doesn't need winlib directory as libusb should be installed on OS.
|
#unix build doesn't need winlib directory as libusb should be installed on OS.
|
||||||
#sudo apt-get install libusb-1.0-0-dev
|
#sudo apt-get install libusb-1.0-0-dev
|
||||||
unix: shared
|
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
|
# "make debug" will build program with debug print messages
|
||||||
# -DDEBUG show debug logs
|
# -DDEBUG show debug logs
|
||||||
|
|
|
||||||
|
|
@ -24,9 +24,9 @@
|
||||||
#include "shared_enums.h"
|
#include "shared_enums.h"
|
||||||
|
|
||||||
//lua libraries
|
//lua libraries
|
||||||
#include "lua\lua.h"
|
#include "lua/lua.h"
|
||||||
#include "lua\lauxlib.h"
|
#include "lua/lauxlib.h"
|
||||||
#include "lua\lualib.h"
|
#include "lua/lualib.h"
|
||||||
|
|
||||||
void error (lua_State *L, const char *fmt, ...) {
|
void error (lua_State *L, const char *fmt, ...) {
|
||||||
va_list argp;
|
va_list argp;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue