Title: Arduino due BOSSAC source code build using the source tree makefile
Tags: c++;c;arduino;embedded;arduino-due
Question: I have downloaded the bossa source code from - https://github.com/shumatech/BOSSA/tree/arduino
I installed Cygwin for windows and built the source code from the Cygwin shell by executing the following make command:
make OS=MINGW32_NT-6.1
I get the following error:
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
After inspecting the PortFactory.h file, I see a pre processor directive __WIN32__.
I have tried to include that in my build as follows and get no success:
make OS=MINGW32_NT-6.1 CPPFLAGS=-D__WIN32__
What am I missing? I have CFLAGS and CXXFLAGS as well and get no success.
Comment: Looking at the makefile it uses `COMMON_CXXFLAGS`

Comment: Just to confirm, you tried `CXXFLAGS=-D__WIN32__`, right? You shouldn't have to specify this though.



{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 0, 'CommentCount': 2, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2016:00:02/12/16', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<c++><c><arduino><embedded><arduino-due>', 'Title': 'Arduino due BOSSAC source code build using the source tree makefile', 'ViewCount': 285, 'id': 35374205, 'user_AboutMe': '<p>Embedded Software Engineer focusing on firmware and device development using C/C++ (and some assembly), .NET/.NET CF (Desktop client and Windows Mobile) and Objective C (iPhone) </p>\n', 'user_AccountId': 125733.0, 'user_DisplayName': 'Subbu', 'user_Reputation': 829.0, 'user_Views': 144.0, 'user_id': 321710.0}}