Ian wrote: > Dear Craig, > > Thanks very much. Here's a brief report on my situation. > With gcc 3.2.3, using cmake, my application has some lines as: > > PdfRect myrect(double(left),double(bottom),double(opw),double(ophline)); > int my_width =(int) myrect.GetWidth(); > > This generates error messages of: > > request for member `GetWidth' in `myrect(double, double, double, double)', > which is > of non-aggregate type `PoDoFo::PdfRect ()(double, double, double, double)' > > same code works fine on gcc4 and windows - this is a gcc 3.2 specific problem. > You're using constructor-like syntax for built-in POD types:
double(left) etc, and I don't think gcc 3.x is happy with that. Try using a static_cast<double>(left) instead if you need an explicit cast. -- Craig Ringer ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
