Menu ▾ ▴

#54 _stprintf_s(buff, BUFF_SIZE, _T(" %.1f ?), dAngleDeg); compile error

Next release
closed
nobody
None
5
2016-05-01
2016-05-01
reandr
No

what is this error?
any special c file format?

1 Attachments

Discussion

  • reandr

    reandr - 2016-05-01

    just change wrong ? to " and tried to recompile.
    _stprintf_s(buff,BUFF_SIZE,_T("%.1f"),dAngleDeg);

    this time another error occurred.

    Error LNK2019 unresolved external symbol _snprintf_s referenced in function setDecompDefaults JPEGView C:\Users\Administrator\Downloads\jpegview-code-356\jpegview-code-356\current\JPEGView\turbojpeg-static.lib(turbojpeg.c.obj) 1

    Error LNK2019 unresolved external symbol __iob_func referenced in function output_message JPEGView C:\Users\Administrator\Downloads\jpegview-code-356\jpegview-code-356\current\JPEGView\turbojpeg-static.lib(turbojpeg.c.obj) 1

    Maybe this error is already known.
    need to recompile turbojpeg with visual studio 2015 ?

     

    Last edit: reandr 2016-05-01
  • reandr

    reandr - 2016-05-01

    now it works.
    recompiled turbojpeg-static.lib with visual studio 2015

     
  • David Kleiner

    David Kleiner - 2016-05-01
    • status: open --> closed
     
  • David Kleiner

    David Kleiner - 2016-05-01

    I close this one.
    The fact that Microsoft made the lib format somehow incompatible with earlier version in VS 2015 is annoying but not a bug of JPEGView.
    Only solution: Either use VS 2013 to compile or recompile the libs with VS 2015.

     

Log in to post a comment.