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 日

0 投票

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 件のコメント

Sara
Sara 2019 年 6 月 4 日
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!
Titus Edelhofer
Titus Edelhofer 2019 年 6 月 4 日
No, that should be it. Did you specify in your Visual Studio to build 64bit?

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeMATLAB 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