Skip to content

Linker error in Running the MNIST sample app #5209

Answered by snnn
mayani-nv asked this question in Other Q&A
Discussion options

You must be logged in to vote

It works fine on my PC. Based on the limited information I have now, it's hard to say what went wrong in your place.

I have two suggestions:

  1. Download the latest onnxruntime binary release from https://github.com/microsoft/onnxruntime/releases/tag/v1.4.0, the "onnxruntime-win-x64-1.4.0.zip" file. Then unzip it, and modify the paths in build.bat you have as something like:
cl MNIST.cpp /Zi /EHsc /IC:\src\onnxruntime\samples\c_cxx\MNIST\onnxruntime-win-x64-1.4.0\include /link /LIBPATH:C:\src\onnxruntime\samples\c_cxx\MNIST\onnxruntime-win-x64-1.4.0\lib

Then run it and copy the onnxruntime.dll from unzipped folder to the same dir of MNIST.exe. Also, please don't forget to download the mode…

Replies: 11 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

@ankur2051
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by snnn
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #5209 on October 26, 2020 21:52.