FYI: Problems solved by switching to gcc 3.3 (was RE: Win32 g cj: How to create a shared library and other w32 issues)
Jost Boekemeier
JBoekemeier@inetsoftware.de
Fri Jun 13 11:49:00 GMT 2003
> Could you be more specific? Where does this happen?
In libstdc++-v3/config/io/basic_file_studio.cc:
@@ -246,7 +246,11 @@
#ifdef FIONREAD
// Pipes and sockets.
int __num = 0;
+#ifdef __MINGW32__
+ int __r = ioctlsocket(this->fd(), FIONREAD, (u_long*)&__num);
+#else
int __r = ioctl(this->fd(), FIONREAD, &__num);
+#endif
if (!__r && __num >= 0)
return __num;
#endif
The above change is probably wrong (at least untested).
> Could you go into more detail here?
The JNIIMPEXP which is defined as
__declspec(dllexport)
causes this. If you re-declare the three methods (JN_CreateVM etc.) as
extern jint JNICALL, then this will work.
Jost
More information about the Java
mailing list