On 07/04/2020 15:29, Hans de Ruiter via Cygwin wrote:
Hi Hans,
I've been trying to compile something that uses comutil.h, which in turn
includes comip.h and comdef.h (amongst others).
First, I get a missing header error:
/usr/include/w32api/comip.h:21:10: fatal error: new.h: No such file or directory
So, I copy new.h from the mingw headers (I'm using the cygwin compiler *not*
mingw). Then, I get the following:
Why do you think the mingw headers would work with Cygwin's compiler?
From an API point of view, Cygwin is a POSIX system. If your software includes
comutil.h/compip.h/comdep.h, that's a Windows application. You need a compiler
which understands the Windows API and creates native Windows applications.
Cygwin's GCC isn't such a compiler.
You need either a Mingw compiler, or Cygwin's cross compiler
(mingw64-i686-gcc-g++-9.2.0-2 )
Csaba
--
You can get very substantial performance improvements
by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler
So if you're looking for a completely portable, 100% standards-conformat way
to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK)
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation: https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple