Info

この質問は閉じられています。 編集または回答するには再度開いてください。

mex of non-ansi C code with WindowsSDK on 64-bit machine

1 回表示 (過去 30 日間)
Jim Quirk
Jim Quirk 2013 年 5 月 24 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Is there an equivalent of removing the -ansi flag for the Windows SDK compiler?
I am attempting to mex a C package in MATLAB 2012b on a Windows 7 64-bit machine using Windows SDK 7.1 (after running the mex -setup), but the compile keeps failing with various syntax errors. However, the code will compile in MATLAB 2011a under linux (using gcc) if I remove the -ansi flag from the mexopts file, so the issue appears to be with the compiler language configuration under Windows.
The closest thing I have been able to find for the windows compiler is the /Ze flag (enabling language extensions) but this does not resolve the compilation issues.
Any suggestions/help/blind guesses would be appreciated.
Thanks.
  1 件のコメント
Peter
Peter 2014 年 6 月 16 日
Hi Jim Quirk did you find a solution to your problem. I would be interested in it.

回答 (0 件)

製品

Community Treasure Hunt

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

Start Hunting!

Translated by