Giter Club home page Giter Club logo

hxvm-lua's Issues

Getting build errors.

Getting build errors on minimal example following README.md.

Error: Lua.cpp
./src/vm/lua/Lua.cpp(185): error C2679: binary '=': no operator found which takes a right-hand operand of type 'overloaded-function' (or there is no acceptable conversion)
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(443): note: could be 'Dynamic cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(null &)'
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(438): note: or       'Dynamic cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(Dynamic &)'
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(437): note: or       'cpp::Function<int (cpp::Pointer<lua_State>)> cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(const cpp::Function<int (cpp::Pointer<lua_State>)> &)'
./src/vm/lua/Lua.cpp(185): note: while trying to match the argument list '(cpp::Function<int (cpp::Pointer<lua_State>)>, overloaded-function)'
./src/vm/lua/Lua.cpp(189): error C2679: binary '=': no operator found which takes a right-hand operand of type 'overloaded-function' (or there is no acceptable conversion)
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(443): note: could be 'Dynamic cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(null &)'
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(438): note: or       'Dynamic cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(Dynamic &)'
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(437): note: or       'cpp::Function<int (cpp::Pointer<lua_State>)> cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(const cpp::Function<int (cpp::Pointer<lua_State>)> &)'
./src/vm/lua/Lua.cpp(189): note: while trying to match the argument list '(cpp::Function<int (cpp::Pointer<lua_State>)>, overloaded-function)'
./src/vm/lua/Lua.cpp(193): error C2679: binary '=': no operator found which takes a right-hand operand of type 'overloaded-function' (or there is no acceptable conversion)
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(443): note: could be 'Dynamic cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(null &)'
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(438): note: or       'Dynamic cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(Dynamic &)'
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(437): note: or       'cpp::Function<int (cpp::Pointer<lua_State>)> cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(const cpp::Function<int (cpp::Pointer<lua_State>)> &)'
./src/vm/lua/Lua.cpp(193): note: while trying to match the argument list '(cpp::Function<int (cpp::Pointer<lua_State>)>, overloaded-function)'
./src/vm/lua/Lua.cpp(197): error C2679: binary '=': no operator found which takes a right-hand operand of type 'overloaded-function' (or there is no acceptable conversion)
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(443): note: could be 'Dynamic cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(null &)'
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(438): note: or       'Dynamic cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(Dynamic &)'
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(437): note: or       'cpp::Function<int (cpp::Pointer<lua_State>)> cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(const cpp::Function<int (cpp::Pointer<lua_State>)> &)'
./src/vm/lua/Lua.cpp(197): note: while trying to match the argument list '(cpp::Function<int (cpp::Pointer<lua_State>)>, overloaded-function)'
./src/vm/lua/Lua.cpp(201): error C2679: binary '=': no operator found which takes a right-hand operand of type 'overloaded-function' (or there is no acceptable conversion)
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(443): note: could be 'Dynamic cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(null &)'
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(438): note: or       'Dynamic cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(Dynamic &)'
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(437): note: or       'cpp::Function<int (cpp::Pointer<lua_State>)> cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(const cpp::Function<int (cpp::Pointer<lua_State>)> &)'
./src/vm/lua/Lua.cpp(201): note: while trying to match the argument list '(cpp::Function<int (cpp::Pointer<lua_State>)>, overloaded-function)'
./src/vm/lua/Lua.cpp(205): error C2679: binary '=': no operator found which takes a right-hand operand of type 'overloaded-function' (or there is no acceptable conversion)
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(443): note: could be 'Dynamic cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(null &)'
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(438): note: or       'Dynamic cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(Dynamic &)'
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(437): note: or       'cpp::Function<int (cpp::Pointer<lua_State>)> cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(const cpp::Function<int (cpp::Pointer<lua_State>)> &)'
./src/vm/lua/Lua.cpp(205): note: while trying to match the argument list '(cpp::Function<int (cpp::Pointer<lua_State>)>, overloaded-function)'
./src/vm/lua/Lua.cpp(209): error C2679: binary '=': no operator found which takes a right-hand operand of type 'overloaded-function' (or there is no acceptable conversion)
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(443): note: could be 'Dynamic cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(null &)'
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(438): note: or       'Dynamic cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(Dynamic &)'
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(437): note: or       'cpp::Function<int (cpp::Pointer<lua_State>)> cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(const cpp::Function<int (cpp::Pointer<lua_State>)> &)'
./src/vm/lua/Lua.cpp(209): note: while trying to match the argument list '(cpp::Function<int (cpp::Pointer<lua_State>)>, overloaded-function)'
./src/vm/lua/Lua.cpp(213): error C2679: binary '=': no operator found which takes a right-hand operand of type 'overloaded-function' (or there is no acceptable conversion)
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(443): note: could be 'Dynamic cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(null &)'
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(438): note: or       'Dynamic cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(Dynamic &)'
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(437): note: or       'cpp::Function<int (cpp::Pointer<lua_State>)> cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(const cpp::Function<int (cpp::Pointer<lua_State>)> &)'
./src/vm/lua/Lua.cpp(213): note: while trying to match the argument list '(cpp::Function<int (cpp::Pointer<lua_State>)>, overloaded-function)'
./src/vm/lua/Lua.cpp(217): error C2679: binary '=': no operator found which takes a right-hand operand of type 'overloaded-function' (or there is no acceptable conversion)
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(443): note: could be 'Dynamic cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(null &)'
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(438): note: or       'Dynamic cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(Dynamic &)'
C:/HaxeToolkit/haxe/lib/hxcpp/3,4,188/include\cpp/Pointer.h(437): note: or       'cpp::Function<int (cpp::Pointer<lua_State>)> cpp::Function<int (cpp::Pointer<lua_State>)>::operator =(const cpp::Function<int (cpp::Pointer<lua_State>)> &)'
./src/vm/lua/Lua.cpp(217): note: while trying to match the argument list '(cpp::Function<int (cpp::Pointer<lua_State>)>, overloaded-function)'
./src/vm/lua/Lua.cpp(226): error C2664: 'void linc::luaL::requiref(lua_State *,const char *,cpp::Function<int (lua_State *)>,bool)': cannot convert argument 3 from 'cpp::Function<int (cpp::Pointer<lua_State>)>' to 'cpp::Function<int (lua_State *)>'
./src/vm/lua/Lua.cpp(226): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called

 - src/tink/core/NamedWith.cpp
 - src/tink/core/FutureTrigger.cpp
 - src/tink/core/_Future/NestedFuture.cpp
 - src/tink/core/_Lazy/LazyFunc.cpp
 - src/tink/core/_Future/LazyTrigger.cpp
 - src/tink/core/_Lazy/Lazy_Impl_.cpp

[Question] Comparision to linc_luajit

I'm considering switching my project from linc_luajit to hxvm-lua. Are there caveats/known issues with hxvm-lua? It seems it's high level and this is like the JIT... and it also supports javascript.

In short what are the benefits and drawbacks of making the switch?

You cannot access the lua package while targeting cpp

I'm getting that error while trying to compile to C++:

src/Client.hx:10: characters 15-22 : You cannot access the lua package while targeting cpp (for lua.Lua)
import vm.lua.Lua;
// src/Client.hx:10
var lua = new lua.Lua();

build file:

-cp src
-lib linc_lua
-lib tink_core
-lib hxvm-lua
-main Client
-cpp build/moos

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.