MATLAB Answers


unresolved external symbol error, while building in Visual Studio code made by coder.

Sara 님이 질문을 제출함. 3 Jun 2019
I generateg CPP source code and DLL with the matlab coder.
I am trying to build the project in visual studio by following this guide: link, but I'm getting the attached errors.
Do you know what could be the reason?
Matlab version 2018a

  댓글 수: 0

로그인 to comment.


답변 수: 1

Titus Edelhofer 님의 답변 4 Jun 2019

Hi Sara,
just to be sure: did you specify the dll as external reference, as described in the doc in "Specify External Dependencies"?

  댓글 수: 2

I added the .lib file according to this guidance:
Under Configuration Properties > Linker > Input, add foo.lib to Additional Dependencies.
and the path as described in the next clause.
Is there something additional I need to perform?
No, that should be it. Did you specify in your Visual Studio to build 64bit?

로그인 to comment.

Translated by