Linker LNK2038 error while installing caffe on Windows

134 views
Skip to first unread message

Francesco Morandin

unread,
Apr 6, 2017, 11:50:59 AM4/6/17
to Caffe Users
Hi, I beg for help.
I'm trying to install caffe on Windows 8.1 and got stuck at some point with LNK2038 error.

My configuration is Visual Studio 2015, CUDA 8.0, Python 3.5.

I installed Miniconda, CMake and put ninja executable in the path.

When I launched scripts\build_win.cmd it started compiling and linking a total of --I think-- 215 packages. The majority of these did not give problems, but the script stopped with an error when some 45 where still to do. When I try again, the one already compiled and linked are ignored and the order of the remaining sometimes changes slightly, so some other packages went through, but every time the script would stop with error while "Linking CXX executable tools\extract_features.exe" or "tools\device_query.exe" (or maybe others).

The typical error message is:

libprotobuf.lib(common.cc.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in extract_features.cpp.obj

I am no developer, so I don't know where to put my hands in this situation. Any help?

I include the log of one of the last attempts. Thank you in advance.

LNK2038error.zip

Calitros R

unread,
Apr 8, 2018, 8:15:14 PM4/8/18
to Caffe Users
Hi Francesco
I have the same issue as you. Did you find out the solution? How do you resolve it?
Thanks in advance for your information

Regards

Carlos
Reply all
Reply to author
Forward
0 new messages