IO_INC
IO_INC

Reputation: 75

Lua 5.3 in Visual Studio 2015

I am trying to implement lua into C++ however I am having problems with Visual Studio saying that I have an unresolved external symbol called "_sprintf", "_fprintf", and "__iob_func".

I'm pretty sure that these functions exist in C++ since I have seen (well the first 2) them used before.

Upvotes: 1

Views: 2039

Answers (1)

drivehappy
drivehappy

Reputation: 46

You're probably running into the C-runtime changes introduced in VS2015: The Great C Runtime Refactoring.

You can add the following library to supply those definitions in the Additional Dependencies in the Project Settings -> Linker -> Input:

legacy_stdio_definitions.lib

Upvotes: 3

Related Questions