Hello list
I have a library developed in C++ with GNU C++ (Linux) and want to port it to Windows. In the earlier versions tried using Visual C++ and was a bit difficult to maintain since some OS and hardware dependent functions were quite different or unavailable.
In particular I had to modify my threads and sockets code for windows and create some kind of simple MUTEX_LOCK for multithreading, so aparently for the programmer it was enough to call the library functions in the same way under Linux and Windows, but was hard to maintain both versions so the windows version was deprecated and continued working on the *NIX version only.
Recently I found dev-c++ and that it is based on the GNU C++ compiler and it atracted my attention again, most of my code works 100% without changes except the threads and sockets code that has no available functions in the included libraries.
My question is if it is possible in some way to integrate *NIX socket support (socket, inet_addr, gethostbyname, etc) with dev-c++ and it would be nice to have some kind of pthreads support maybe by adding an extra module or library.
Any coment or help on this?
Thanks,
Miguel
_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE |