Thread: Having a problem building Zthread

  1. #1
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901

    Having a problem building Zthread

    I incorporated the source files and includ path in my project, but when I go to build the project I get following error

    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
    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)
    at this section of code
    Code:
    template <class LockType, class LockingPolicy>
    Guard<LockType, LockingPolicy>::~Guard() throw() {
        
      try {
        
        if(!isDisabled())
          LockingPolicy::destroyScope(*this);
        
      } catch (...) { /* ignore */ }  
      
    }

  2. #2
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    NM I found out I have to explicitly define the scope the functions are used in because they are all within template classes. ugh...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  2. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  3. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM
  4. Problem building a Release
    By The SharK in forum C++ Programming
    Replies: 21
    Last Post: 06-23-2006, 05:21 PM
  5. beginner problem
    By The_Nymph in forum C Programming
    Replies: 4
    Last Post: 03-05-2002, 05:46 PM