[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Gnulib in non-Autotools projects with --create-testdir
From: |
John Scott |
Subject: |
Re: Gnulib in non-Autotools projects with --create-testdir |
Date: |
Mon, 31 Aug 2020 07:50:20 -0400 |
On Sunday, August 30, 2020 6:54:08 AM EDT Bruno Haible wrote:
> This indicates that you have been generating the sys/utsname.h on a machine
> that has /usr/include/sys/utsname.h (e.g. not mingw) and are now trying to
> use it on mingw.
You're right, I was doing something weirdly, probably forgetting to specify
the cross-compiler options. If I try again now, I get
gllib/unistd.h:621:3: error: #error "Please include config.h first."
621 | #error "Please include config.h first."
| ^~~~~
gllib/unistd.h:623:24: error: expected ‘;’ before ‘extern’
623 | _GL_INLINE_HEADER_BEGIN
| ^
| ;
gllib/unistd.h:2194:22: error: expected ‘;’ before ‘int’
2194 | _GL_INLINE_HEADER_END
| ^
|
I'm not using Autotools for my project, so I don't get why I should include
config.h. If I do that anyway, and I pass -lws2_32 to gcc as hinted by
configure, my program works under Wine! Having to guesstimate that linker flag
may be a little less clean than I'd hoped, but it's great that it works.
signature.asc
Description: This is a digitally signed message part.