Re: [Dev-C++] Porting C++ from Linux to DevCPP
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: matheus r. <mfr...@gm...> - 2008-12-04 19:18:24
|
Hi there is a pthread for windows: http://sourceware.org/pthreads-win32/ About the socket, there is a socket library for windows too. Check this tutorial: http://beej.us/guide/bgnet/ hope it helps 2008/12/4 Kanito 73 <kan...@ho...> > 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 Learn more!<http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE> > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > |