フィルターのクリア

'windows.h' file not found

22 ビュー (過去 30 日間)
Adam Wei
Adam Wei 2016 年 11 月 13 日
コメント済み: Adam Wei 2016 年 11 月 13 日
Hi, I met a problem when I compile c++ on Matlab on a Mac system as followed. I am not familiar with this situation. Could anyone help me with this? THANKS!
Building with 'Xcode Clang++'.
Error using mex
/Users/Downloads/gco-v3.0/matlab/gco_matlab.cpp:5:10: fatal error:
'windows.h' file not found
#include <windows.h>
^
1 error generated.

採用された回答

Walter Roberson
Walter Roberson 2016 年 11 月 13 日
windows.h is an include file that is only for MS Windows systems. It should not have been trying to compile it.
Grab the gco-v3.0.zip from http://vision.csd.uwo.ca/code/ . Let OS-X unzip it for you (double-click it if need be.) Then in MATLAB, use pathtool to add the gco/matlab folder so created to the MATLAB path.
Once that is done, give the command
GCO_UnitTest
and that will do the compiling for you.
Afterwards, test with
h = GCO_Create(4,3)
  1 件のコメント
Adam Wei
Adam Wei 2016 年 11 月 13 日
Thanks for your answer! I have solved this followed your instruction. Thanks again!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by