Reputation: 75
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
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