Jump to content
XCOMUFO & Xenocide

Zthread 2.3.2 Compile Error


Recommended Posts

Hi,

 

I'm a noob at c++ programming and I got a book from the internet: "Thinking in C++ Volume 2: Practical Programming". I'm at the concurrency part and it uses the zthread library (cause c++ don't have a standard thread library) and I downloaded it from the net. I'm working in windows (because I have to - not by choice) and I'm using Dev-Cpp as an IDE. Dev-Cpp 5 uses g++ 3.4.2 as the compiler. When I try to compile (using the instructions given - I can't use configure so I made a new project [static library] and added all the source files in src; also I added the include folder in the compiler options)

I got the error message:

 

In file included from ../ZThread-2.3.2/src/ConditionImpl.h:26,

 

from ../ZThread-2.3.2/src/Condition.cxx:24:

C:/programme/ZThread-2.3.2/include/zthread/Guard.h: In destructor `ZThread::Guard<LockType, LockingPolicy>::~Guard()':

C:/programme/ZThread-2.3.2/include/zthread/Guard.h:494: error: there are no arguments to `isDisabled' that depend on a template parameter, so a declaration of `isDisabled' must be available

C:/programme/ZThread-2.3.2/include/zthread/Guard.h:494: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)

 

make.exe: *** [../ZThread-2.3.2/src/Condition.o] Error 1

 

Execution terminated

 

 

Is there anyone who can help me, please.

It will be highly appreciated.

Thanks to all reading my post.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...