HAVE_GETCWD fails to include io.h

Ranjit Mathew rmathew@hotmail.com
Fri Aug 23 04:15:00 GMT 2002


Bryce McKinlay wrote:
> Adam Megacz wrote:
>>> Hrm, mingw won't build anymore because natSystem.cc uses getcwd()
>> without #includ'ing io.h.
>>>> Where would the appropriate place be for me to add #include<io.h>? In
>> win32.h? In a #ifdef-WIN32 block in natSystem.cc?
>>>> In win32.h would be best as <io.h> is a platform-specific header, and 
> win32.h is already included by natSystem.cc.

Be careful - when I did this, I got errors on conflicting
redeclarations of close( ) - as a kludge I just #included
io.h in natSystem.cc.
I think you'd also encounter errors (after this) about
the symbols IP_MULTICAST_IF, etc. not being present. I
tried winsock.h, but finally had to go with ws2tcpip.h
to fix up everything.
BTW, this is w.r.t. to the GCC 3.2 release.
Ranjit.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /