Andrey
Andrey

Reputation: 21

Linking error with luarocks

Im trying to use luarocks for installing luafilesystem module. Since im trying to install version 1.6.2, luarocksis trying to build luafilesystem on my local machine.

I have the following error: lfs.obj : error LNK2019: unresolved external symbol. I have this error for 30 standard lua functions: lua_pushinteger, lua_pushstring.

Can anyone please help me?

Thanks!

Im using: 1. Lua 5.1 for windows 7. 2. CL compiler of Microsoft Visual Studio 9.0 for amd64. 3. Microsoft SDK's V6.1 for X64

Upvotes: 1

Views: 660

Answers (1)

Andrey
Andrey

Reputation: 21

Solved it. I learned that luarocks uses a config file (config.lua) which contains the name of lua's lib file (lua5.1.lib). The lib file didnt fit my machine, so I took the lib file for x64 (from my lua version and switched it).

Upvotes: 1

Related Questions