From: Richard T. <rtroy@ScienceTools.com> - 2001-03-26 19:34:52
|
> I agree with you that there is no 'netdb.h' in the mingw-stuff. > > What for declarations are in netdb.h ? Hi Georg, All I want from netdb.h is to call gethostname(). Apparently it defines, among other things I'm unaware of, the struct hostent used by gethostname(). For more see: http://www.gnu.org/manual/glibc-2.0.6/html_chapter/libc_11.html#SEC191 RT > > I've got a working installation of gcc-2.95.2 on a windows 98 box, along > > with i386-mingw32 - a fairly recent installation. Up to now, I've done all > > of my development on Linux and have just copied the source over and > > compiled it. Some of my programs work fine - I just run make and that's > > it. > > > > Compilation of one of my programs fails because it includes netdb.h and > > neither it nor I can find netdb.h on my windows system. I do find several > > on my Linux system, of course. I suspect that there will be other includes > > I'll stumble across needing too... > > > > I searched the mail list archives without result, but maybe because I > > didn't know what to search on. I presume I can't just move over one of the > > netdb.h files from my linux system, or is that OK? Is there a downloadable > > library of more includes? Did I make a mistake using mingw32 (meaning, is > > there another package I should have used instead)? > > > > Please advise! > > > > RT > > > > P.S. I also enjoyed reading up on c and java interaction - did I interpret > > what I was reading correctly: I can call my Java code from C or C code > > from my Java? ...Calling C routines from Java would be VERY useful for me! > > Also, if someone can point me at a good source of concise reading on > > cross-compiling with Gnu C, I'd appreciate it. > > R > > > > -- > > Richard Troy, Chief Scientist > > Science Tools Corporation > > rtroy@ScienceTools.com, 510-567-9957, http://ScienceTools.com/ > > > > _______________________________________________ > > MinGW-users mailing list > > Min...@li... > > > > You may change your MinGW Account Options at: > > http://lists.sourceforge.net/lists/listinfo/mingw-users > > |