Giter VIP home page Giter VIP logo

Comments (5)

spc476 avatar spc476 commented on August 28, 2024

You are using an older version of TCC that isn't supported. This does work with TCC 0.9.25 and it should (maybe) run with a higher version, but it's not tested. The latest version is available at http://repo.or.cz/tinycc.git.

from lua-conmanorg.

kt97679 avatar kt97679 commented on August 28, 2024

Thanks for the quick response @spc476 ! How do you suggest to fix this in my case?

from lua-conmanorg.

spc476 avatar spc476 commented on August 28, 2024

Um ... download the latest version of TCC that I linked to and use that? Fix the Lua module to remove the extra parameter? (although I don't know if that will work, and I don't accept a patch for it since there's no way to check for that when compiling) Skip compiling TCC entirely by removing it from the Makefile? (unless you need to use the module for some reason). I don't know exactly what you want here ...

from lua-conmanorg.

kt97679 avatar kt97679 commented on August 28, 2024

Ok, thanks @spc476 . One more question. I've compiled lua from sources and don't want to install it into the system. How I can add your modules to my compiled binary?

from lua-conmanorg.

spc476 avatar spc476 commented on August 28, 2024

I write two articles about embedding modules in a Lua executable (Preloading Lua modules and Preloading Lua modules, part II) but that was several years ago---I changed it slightly since then to load the C based modules into packages.preload[]. This does require changes to the main Lua executable (lua.c in the Lua source code) and the Makefile to implement.

You'll also find code to convert arbitrary data (like Lua scripts) info a format that can be compiled by a C compiler (build/bin2c.c in this repo) which can be helpful for this endeavor.

from lua-conmanorg.

Related Issues (5)

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.