
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