Simulink model from 32-bit to 64-bit machine

My Simulink model is developed in Windows XP 32-bit machine. When I put it on a Windows 7 64-bit machine, it doesn't work. After lots of debug, I found out that the problem is I used the library "ws2_32.lib" in several of my S-functions. Seems like this library is different in a 64-bit machine. Does anybody know how to fix this problem?
Thanks..

回答 (1 件)

Ken Atwell
Ken Atwell 2012 年 4 月 1 日

0 投票

That is the Windows socket library. You may need to go to a Microsoft forum for a more knowledge group vis-a-vis 64-bit porting issues, but this thread suggests the 64-bit version is a drop-in replacement for the 32-bit version. However, bug reports like this one may suggest otherwise -- is this along the line a what you are seeing?
Let us know how you make out.

2 件のコメント

Pengfei
Pengfei 2012 年 4 月 2 日
I agree with the first link. However, the author didn't specify how to " link to the 64-bit version of the ws2_32.lib"? Do you happen to know that? Thank you!
Ken Atwell
Ken Atwell 2012 年 4 月 3 日
Sorry, I don't; I've never used this library before.

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

カテゴリ

ヘルプ センター および File ExchangeManual Performance Optimization についてさらに検索

質問済み:

2012 年 4 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by