From: Xiaofan C. <xia...@gm...> - 2018-05-13 02:29:27
|
On Sun, May 13, 2018 at 7:15 AM, Paulo Custodio <pau...@gm...> 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 |