Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Internal Lua and require

Aug
1,933
71
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
 

Similar threads

Replies
0
Views
2K
Back
Top