3

I've ported my project from vs 2012 to vs 2015.

The Library i'm consuming is also built from vs 2015.

I build my project using makefile and getting this error

LNK1104 cannot open file 'legacy_stdio_definitions.lib'

if i build the same in vs 2012 , it works fine.

What this error is all about?

asked Aug 13, 2018 at 6:52
1
  • Unusual problem to have. Start by looking in the C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib directory for that file. Next make sure that the makefile sets the LIB environment variable correctly. Next consider that you should not need this library at all, it is a hack to help port code that did not use #include correctly, so remove it from the link dependencies. Commented Aug 13, 2018 at 8:30

1 Answer 1

2

Try opening the project in Visual Studio, then click Project at the top menu bar. Click "Properties", "Linker", and then "Input". In "Additional Dependencies", click the down arrow beside and click "Edit". Add "legacy_stdio_definitions.lib" and click "OK", then "OK".

answered Aug 13, 2018 at 8:20
Sign up to request clarification or add additional context in comments.

1 Comment

I'm using make file to build, so these options are not available to me.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.