Multithreading C++ in Win98 
Author Message
 Multithreading C++ in Win98

Hi All,

I am trying the following "Hello world" multithreading
example from a book Multi-threaded programming in C++ by
Mark Walmsley.

I am getting the following error when compiling a user
defined thread class implementation in the Start Function.

Compiling...
thread.cxx
C:\thread.cxx(18) : error C2065: '_beginthreadex' :
undeclared identifier
Error executing cl.exe.

I have included <process.h> & from MSDN it seems that it
will work in Win95 & NT.  It should also work on 98 right?

Thanks for suggestions,

Vikas

  thread.cxx
1K Download


Fri, 18 Feb 2005 08:41:34 GMT  
 Multithreading C++ in Win98
Hi Vikas,

You must define /MT (or /MTd for debugging mode) in your project settings to
inform VC++ to use the multithreaded library.
Go to Project, Settings, C++ tab, select 'Code Generation' in the 'Category'
combo, and then select a 'multithreaded' option in the 'Use run-time
library' combo.

HTH.

--
[]'s

Raul M. Fragoso


Quote:
> Hi All,

> I am trying the following "Hello world" multithreading
> example from a book Multi-threaded programming in C++ by
> Mark Walmsley.

> I am getting the following error when compiling a user
> defined thread class implementation in the Start Function.

> Compiling...
> thread.cxx
> C:\thread.cxx(18) : error C2065: '_beginthreadex' :
> undeclared identifier
> Error executing cl.exe.

> I have included <process.h> & from MSDN it seems that it
> will work in Win95 & NT.  It should also work on 98 right?

> Thanks for suggestions,

> Vikas



Fri, 18 Feb 2005 10:32:12 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Win98 (Chin) Vs Win98 (Eng)

2. Does Managed C++ forces multithreading?

3. C++ Exceptions and multithreading

4. C++ Exceptions and multithreading

5. Need a good tutorial on multithreading in Visual C++ 6.0

6. Multithreading and Standard C++ Library

7. Multithreading in Visual C++

8. Multithreading for win32 in C++

9. I want a multithreading sample(Visual C++ mfc)!!!!

10. Common C++ Multithreading class

11. Multithreading in Visual C++ programmes

12. c/c++ compiler for win98 needed.

 

 
Powered by phpBB® Forum Software