Most likely, you compile both luac.c, and lua.cin the same project VS. To build Lua yourself in VS, you need three projects:
Library- This must be a DLL or static library project. Must include every .c file in src / except luac.c and lua.c. You only need this if you embed.
- , luac.c
- , lua.c