[cairo] forward declaration

陈凯 chenkai036 at gmail.com
Thu Apr 23 20:24:21 PDT 2009


Hi, everyone.  I've got a problem on forward declaration.  In my
drawinghelper.h, i wrote my code like this but compilation fails.  g++
complains "Cairo not declared".

////////////////////////////  DrawingHelp.h
///////////////////////////////////
class Context;

template <typename T>
class RefPtr;

class DrawingHelper
{
public:
    void Draw(Cairo::RefPtr<Cairo::Context>& context);  // g++ complains
"Cairo not declared".

// bla bla bla
};

//////////////////////////////////////////////////////////////////////////////////////

Is there anything wrong with that? Please help me to correct my error,
thanks :)

Best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cairographics.org/archives/cairo/attachments/20090424/dc912a1e/attachment.html 


More information about the cairo mailing list