On Sun, May 13, 2018 at 7:15 AM, Paulo Custodio
<pauloscusto...@gmail.com> wrote:
> I posted by mistake a similar question in sdcc-devel - sorry for spaming.
>
> I'm trying to build sdcc in a Windows with mingw. Although ./configure
> completes successfully, the make afterwards fails with missing constants:
>
> simi.c:272:18: error: 'NO_ERROR' undeclared (first use in this function)
> fwio.cc:118:20: error: 'ERROR_INVALID_HANDLE' was not declared in this scope
> fwio.cc:122:20: error: 'ERROR_INVALID_FUNCTION' was not declared in this
> scope

Just wondering which MinGW version you are using? I have already
given up on MinGW.org, mingw-w64 is the way to go. MSYS2 is
probably the easier to use mingw-w64 distribution out there.

> As another attempt I tried opening the Visual Studio solution file sdcc.sln
> and building, but it targets Visual Studio 2010 and uses stdbool.h, which
> only exists in more recent platform versions.

What do you mean by this? VS2010 is kind of quite old already. Anyway,
I never tried to use the VS solution before. Just used VS2017 Community
version to build sdcc and it failed apart completely.

> Are there any hints of what might be missing in my environment?
>
Just use MSYS2 and try again.
https://github.com/msys2/msys2/wiki

-- 
Xiaofan

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to