From: Luke D. <cod...@ho...> - 2002-08-19 01:25:33
|
To use threads with Mingw, compile and link all of your objects = (including libraries) with the "-mthreads" option to gcc. Yes, I have only used the Win32 API to access serial ports, though with = MSVC not Mingw (but there is no difference). I noticed that the Common = C++ library (http://sourceforge.net/projects/cplusplus/) has = platform-independent classes for multithreaded serial I/O and lots more. Luke Dunstan ----- Original Message -----=20 From: Guidance=20 To: Min...@li...=20 Sent: Sunday, August 18, 2002 5:05 PM Subject: Re: [Mingw-users] serial port Yes, it's source code. It need multi-thread support enabled by the = compiler, how can I enable that in mingw?=20 And all you ever accessed serial port in mingw is win32 api?=20 =20 If the library comes with source code included, and it builds fine with MSVC++ and Borland, it should build fine with MinGW too. = Probably you will need to create the Makefile (or whatever Dev-C++ uses) for MinGW, if the library does not comes with one included, but most of the time this is an easy task. Join Rapid-Q & B++ WebRing now! http://citymap.getmyip.com -------------------------------------------------------------------------= ----- Do You Yahoo!? = =D1=C5=BB=A2=D3=E9=C0=D6=D0=C2=CF=CA=B5=BD=B5=D7,=B5=E7=D7=D3=D6=DC=B1=A8= =BF=EC=C0=D6=B5=BD=BC=D2! |