Comment #3 on issue 49 by
hra...@gmail.com: port cortex to windows
http://code.google.com/p/cortex-vfx/issues/detail?id=49
Tried to build the latest trunk with this patch in Linux and it fails:
include/IECore/IntrusivePtr.inl: In copy
constructor 'IECore::IntrusivePtr<T>::IntrusivePtr(const
IECore::IntrusivePtr<T>&)':
include/IECore/IntrusivePtr.inl:71: error: 'RefCounted' was not declared in
this scope
include/IECore/IntrusivePtr.inl:71: error: expected primary-expression
before ')' token
include/IECore/IntrusivePtr.inl:71: error: there are no arguments
to 'intrusive_ptr_add_ref' that depend on a template parameter, so a
declaration of 'intrusive_ptr_add_ref' must be available
It seems you've used 'RefCounted' class in IntrusivePtr.inl, but
RefCounted.h includes IntrusivePtr.inl itself. As RefCounted is not yet
defined, gcc doesn't like it!
Does MSVC builds it without errors?
-H