1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Internal Lua and require

Discussion in 'Support' started by Joe Caverly, Jul 18, 2014.

  1. Joe Caverly

    Joined:
    Aug 28, 2009
    Messages:
    659
    Likes Received:
    8
    I am using;
    Code:
    TCC  16.03.54  Windows Vista [Version 6.0.6002]
    TCC Build 54  Windows Vista Build 6002  Service Pack 2
    I am attempting to use an external lua library;
    Code:
    which lua
    lua is an internal command
    
    lua
    
    Lua 5.2.3  Copyright (C) 1994-2013 Lua.org, PUC-Rio
    > require "luacom"
    stdin:1: module 'luacom' not found:
      no field package.preload['luacom']
      no file 'C:\Program Files\JPSoft\TCMD16\lua\luacom.lua'
      no file 'C:\Program Files\JPSoft\TCMD16\lua\luacom\init.lua'
      no file 'C:\Program Files\JPSoft\TCMD16\luacom.lua'
      no file 'C:\Program Files\JPSoft\TCMD16\luacom\init.lua'
      no file '.\luacom.lua'
      no file 'C:\Program Files\Lua\5.1\lua\luacom.luac'
      no file 'C:\Program Files\JPSoft\TCMD16\luacom.dll'
      no file 'C:\Program Files\JPSoft\TCMD16\loadall.dll'
      no file '.\luacom.dll'
    stack traceback:
      [C]: in function 'require'
      stdin:1: in main chunk
      [C]: in ?
    The lua library that I want to use is located at;
    Code:
    C:\Program Files\Lua\5.1\clibs\luacom.dll
    Is there a way to make TCC seach C:\Program Files\Lua\5.1\clibs for a library?

    Joe
     

Share This Page