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

Hi,
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?
Thanks!
Matlab version 2018a
Capture2.jpg

답변 (1개)

Titus Edelhofer
Titus Edelhofer 2019년 6월 4일
Hi Sara,
just to be sure: did you specify the dll as external reference, as described in the doc in "Specify External Dependencies"?
Titus

댓글 수: 2

Hi,
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?
Thanks!
No, that should be it. Did you specify in your Visual Studio to build 64bit?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 MATLAB Coder에 대해 자세히 알아보기

태그

질문:

2019년 6월 3일

댓글:

2019년 6월 4일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by