just::thread Support Forum

General Category => General Discussion about just::thread => Topic started by: Kenneth Carter on November 19, 2008, 06:13:04 AM

Title: Beta 0.3 build errors
Post by: Kenneth Carter on November 19, 2008, 06:13:04 AM
I followed the instructions for adding the include and lib to my path.

I created a console application x86. I then added the header <thread> and <mutex>

I had 6 build errors and 4 warnings.

Warning   1   
warning C4003: not enough actual parameters for macro 'min'   
c:\program files (x86)\justsoftwaresolutions\justthread\include\jss\config.hpp   282   Parallel
Warning   2   
warning C4003: not enough actual parameters for macro 'max'   
c:\program files (x86)\justsoftwaresolutions\justthread\include\jss\config.hpp   291   Parallel
Error   3   
error C2589: '(' : illegal token on right side of '::'   
c:\program files (x86)\justsoftwaresolutions\justthread\include\jss\config.hpp   291   Parallel
Error   4   
error C2059: syntax error : '::'   
c:\program files (x86)\justsoftwaresolutions\justthread\include\jss\config.hpp   291   Parallel
Warning   5   
warning C4003: not enough actual parameters for macro 'max'   
c:\program files (x86)\justsoftwaresolutions\justthread\include\jss\config.hpp   300   Parallel
Error   6   
error C2589: '(' : illegal token on right side of '::'   
c:\program files (x86)\justsoftwaresolutions\justthread\include\jss\config.hpp   300   Parallel
Error   7   
error C2059: syntax error : '::'   
c:\program files (x86)\justsoftwaresolutions\justthread\include\jss\config.hpp   300   Parallel
Warning   8   
warning C4003: not enough actual parameters for macro 'max'   
c:\program files (x86)\justsoftwaresolutions\justthread\include\jss\config.hpp   309   Parallel
Error   9   
error C2589: '(' : illegal token on right side of '::'   
c:\program files (x86)\justsoftwaresolutions\justthread\include\jss\config.hpp   309   Parallel
Error   10   
error C2059: syntax error : '::'   
c:\program files (x86)\justsoftwaresolutions\justthread\include\jss\config.hpp   309   Parallel

these errors occured with the <windows.h> header included with it removed I recieved 3 warnings
Warning   1   
warning C4146: unary minus operator applied to unsigned type, result still unsigned   
c:\program files (x86)\justsoftwaresolutions\justthread\include\cstdatomic   106   Parallel
Warning   2   
warning C4146: unary minus operator applied to unsigned type, result still unsigned   
c:\program files (x86)\justsoftwaresolutions\justthread\include\cstdatomic   106   Parallel
Warning   3   
warning C4146: unary minus operator applied to unsigned type, result still unsigned   
c:\program files (x86)\justsoftwaresolutions\justthread\include\cstdatomic   106   Parallel


I would appreciate any advice you may have on how to deal with these errors?

Kenneth
Title: Re: Beta 0.3 build errors
Post by: Anthony Williams on November 19, 2008, 08:08:07 AM
I followed the instructions for adding the include and lib to my path.

I created a console application x86. I then added the header <thread> and <mutex>

I had 6 build errors and 4 warnings.

Warning   1   
warning C4003: not enough actual parameters for macro 'min'   
c:\program files (x86)\justsoftwaresolutions\justthread\include\jss\config.hpp   282   Parallel

these errors occured with the <windows.h> header included

I would appreciate any advice you may have on how to deal with these errors?

Kenneth

Thanks for reporting the problem. Please replace <InstallDir>/include/jss/config.hpp with the version attached to this message. It will be included in beta 0.4, which will be out this week.