Re: [Dev-C++] Multi-threading on Dev-C++ on Windows XP
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: stardoom <sta...@te...> - 2004-09-28 22:58:59
|
* PThreads are characteristic of UNIX enviroments and are not native implementations in Windows XP. Afortunately, Red Hat guys ported to win32. You can find them here http://sources.redhat.com/pthreads-win32/ This is a good choice, because the degree of portatibility is high. Of course you will need to link your program to the library. * Another option is to use the Win32 API, that although breaking the portability is often a good choice: no extra libs are required and usually gives a good performance. A lot of information and technical resources can be found at MSDN. A starting point could be: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/processes_and_threads.asp * Finally, last but not least, if in addition to threads data structures such as liken lists and so on are used, a possibility is to use glib, ( http://www.gtk.org ) which brings a portable thread implementation. Hope this can help. Regards, Francisco P: Rio Mascarenhas wrote: >Hi, > I am using Dev-C++ version 4. I would like to know if >its possible to compile multi-threaded programs with >it on Windows (XP). >I am not entirely new to C++, but I am new to >multithreading. I have managed to get the basic >programs running on Linux (with gcc), but compiling it >on Dev-C++ gives me the error “pthread.h : No such >file or directory.” > >Regards, >Rio > > > > > > >_______________________________ >Do you Yahoo!? >Declare Yourself - Register online to vote today! >http://vote.yahoo.com > > >------------------------------------------------------- >This SF.net email is sponsored by: IT Product Guide on ITManagersJournal >Use IT products in your business? Tell us what you think of them. Give us >Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more >http://productguide.itmanagersjournal.com/guidepromo.tmpl >_______________________________________________ >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 > > > -- F.Palacios sta...@te... sta...@au... fra...@hi... |