Try to break down the problem into smaller ones:
- Get some project to compile and link with Lua. In order to do that, just pick ChrisW67's minimal example, and build it like you do usually, e.g. with qmake and make.
- Get some project to compile and link with Lua within Visual Studio. Import ChrisW67's minimal example in Visual Studio and try to build it.
- Get your own project to compile and link with Lua within Visual Studio. One possibility is to start with ChrisW67's minimal example and edit the .pro file. I can already see two potential issues with your last attempt: you wrote a .pri file, unlike ChrisW67 who wrote a .pro file. You forgot the TEMPLATE and TARGET clauses in your project file.
How far you get on this list will hint at the root cause of your problem. And remember: when someone posts a minimal, working solution, please at least try it to rule out installation/configuration/PEBKAC causes. Ignoring valuable input will not get you anywhere on this forum.
Bookmarks