On December 18, 2002 05:06 pm, Francois Gouget wrote:
There is the same issue gethostname(). Visual C++ does not define it in the msvcrt headers so how does one compile wxWindows with visual C++?
Because these are apps that compile under MinGW using their headers for libc, not the crtdll/msvcrt ones.
In theory, we should compile such apps using the native libc headers, but that does not work. And it does not work because of -fwchar-short, which is a must...
So we are in a bit of a bind: we _have_ to use msvcrt, but the app expects functions that are present only in the Unix/MinGW headers. What do we do?