Arjen,

I guess this is an issue with gcc 3.4.4 being tighter with type
checking. No-one else has yet reported it. I assume the problem is that
the compiler doesn't know whether to interpret 1 as a PLINT or a bool.
To my mind it is definitely an int. (bool should either be true or
false). Anyway, the C++ example now uses true rather than 1 in the call
plshades. Does this fix your problem?

Andrew

On Mon, Mar 17, 2008 at 06:39:24AM +0100, Arjen Markus wrote:
> Hello,
> 
> when I compile the C++ examples I get this error message:
> 
> bash-3.2$ make
> /cygdrive/c/arjen/plplot-svn/plplot/examples/c++/x30.cc: In constructor
> `x30::x30(int, const char**)':
> /cygdrive/c/arjen/plplot-svn/plplot/examples/c++/x30.cc:185: error: call
> of overloaded `shades(PLFLT**&, int, int, NULL, double, double, double,
> double, PLFLT[101], int, int, int, int, void (&)(PLINT, PLFLT*, PLFLT*),
> int, NULL, NULL)' is ambiguous
> /cygdrive/c/arjen/plplot-svn/plplot/bindings/c++/plstream.h:679: note:
> candidates are: void plstream::shades(PLFLT**, PLINT, PLINT, PLINT
> (*)(PLFLT, PLFLT), PLFLT, PLFLT, PLFLT, PLFLT, PLFLT*, PLINT, PLINT,
> PLINT, PLINT, void (*)(PLINT, PLFLT*, PLFLT*), bool, void (*)(PLFLT,
> PLFLT, PLFLT*, PLFLT*, void*), void*)
> /cygdrive/c/arjen/plplot-svn/plplot/bindings/c++/plstream.h:1054: note: 
> void plstream::shades(PLFLT**, PLINT, PLINT, PLINT (*)(PLFLT, PLFLT),
> PLFLT, PLFLT, PLFLT, PLFLT, PLFLT*, PLINT, PLINT, PLINT, PLINT, void
> (*)(PLINT, PLFLT*, PLFLT*),PLINT, void (*)(PLFLT, PLFLT, PLFLT*, PLFLT*,
> void*), void*)
> make[2]: *** [examples/c++/CMakeFiles/x30.dir/x30.o] Error 1
> make[1]: *** [examples/c++/CMakeFiles/x30.dir/all] Error 2
> make: *** [all] Error 2
> bash-3.2$
> 
> I am not familiar enough with the C++ bindings to figure this one
> out (and I am facing some unexpected difficulties with the F77/F95
> bindings for plimage()), so could someone have a look?
> 
> This is with Cygwin on Windows XP, GCC version: 3.4.4, if that is relevant.
> 
> Regards,
> 
> Arjen
> 
> -------------------------------------------------------------------------
> 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/
> _______________________________________________
> Plplot-devel mailing list
> Plplot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/plplot-devel
> 

-------------------------------------------------------------------------
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/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to