afitz / golua Goto Github PK
View Code? Open in Web Editor NEWGo bindings for Lua C API - in progress
License: MIT License
Go bindings for Lua C API - in progress
License: MIT License
Debian 64 bit linux requires -fPIC for golua.o. GOARCH could be checked and if it's amd64, add -fPIC to GOLUA_CFLAGS and add that variable to the gcc command that way it does the right thing on amd64 as well as other archs (which would be blank)
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:32:38: error: conflicting types for 'GoInterface'
In file included from lua.go:4,
from _cgo_export.c:4:
G:\����֪ʶѧϰ\golang\pkg\mod\github.com\afitz\[email protected]\lua51/golua.h:2:38: note: previous declaration of 'GoInterface' was here
typedef struct { void *t; void *v; } GoInterface;
echo "package lua51\n" > lua_defs.go
in the lua51/Makefile does not work correctly in Debian. It puts the literal \n instead of the new line. One work around for this would be to use a semicolon instead of a new line which should make the compiler know what's meant. A perhaps longer work around would be to try to figure out what the system's echo command supports and how it supports it and have system specific echo's... I'd generally say that's a bad idea though, and the semicolon should work just fine.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.