Re: Universal (g)libc



Roger wrote:
I am writing non GUI software in C for use on Windows and Linux. while
libc packages are generally compatible, I am ending up with a lot of
conditional macros for OS and I/O related stuff such as sleep, sockets
fork etc.

What I would really loke is something that implements as much as
possible glibc on a windows platform. I have seen cygwins dll, but is
no good as I cannot reveal some source which is not mine. I have seen
the wxWidgets base, but it is C++ and I want pure C.

This group only deals with standard C so I'm afraid requesting a library that implements things that cannot be done in standard C (or even things that can) is not on topic.


Any experience ideas?

Yes, write an abstraction layer that contains all the system specific stuff and call that from the main body of your code. Then all of the system specific stuff and conditional macros will be isolated in one place keeping the bulk of the code in one place.


<OT>
You may find MinGW and/or GNUWin32 useful, but I would still recommend isolating your system specific code from the bulk of your code to ease future posting issues.
</OT>
--
Flash Gordon
Living in interesting times.
Although my email address says spam, it is real and I read it.
.