Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/138.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 使用源代码树makefile构建Arduino due BOSSAC源代码_C++_C_Arduino_Embedded_Arduino Due - Fatal编程技术网

C++ 使用源代码树makefile构建Arduino due BOSSAC源代码

C++ 使用源代码树makefile构建Arduino due BOSSAC源代码,c++,c,arduino,embedded,arduino-due,C++,C,Arduino,Embedded,Arduino Due,我已从以下位置下载了bossa源代码- 我安装了Cygwin for windows,并通过执行以下make命令从Cygwin外壳构建了源代码: make OS=MINGW32_NT-6.1 我得到以下错误: In file included from src/WinPortFactory.h:33:0, from src/WinPortFactory.cpp:29: src/PortFactory.h:59:2: error: #error "Platform is

我已从以下位置下载了bossa源代码-

我安装了Cygwin for windows,并通过执行以下make命令从Cygwin外壳构建了源代码:

make OS=MINGW32_NT-6.1
我得到以下错误:

In file included from src/WinPortFactory.h:33:0,
             from src/WinPortFactory.cpp:29:
src/PortFactory.h:59:2: error: #error "Platform is not supported"
 #error "Platform is not supported"
  ^
Makefile:180: recipe for target 'obj/WinPortFactory.o' failed
 make: *** [obj/WinPortFactory.o] Error 1
在检查了PortFactory.h文件之后,我看到一个预处理器指令
\uuuuwin32\uuuu

我尝试将其包括在我的构建中,但没有成功:

make OS=MINGW32_NT-6.1 CPPFLAGS=-D__WIN32__

我错过了什么?我也有
CFLAGS
cxflags
,但没有成功。

只是为了确认,您尝试了
cxflags=-D_uuwin32_uu
,对吗?但是您不必指定它。查看它使用的makefile
COMMON\u CXXFLAGS