Mac OS X 10.3.9,
gcc version 3.3 20030304 (Apple Computer, Inc. build 1666)
pngwriter 0.5.3

I cannot get a compile using plot_text.

-------------------
I say:
one.plot_text ( "woof", 10, 900, 1500, "foo", 65535, 65535, 65535 ) ;

and the compiler says:
error: no matching function for call to `pngwriter::plot_text(const 
char[5], int, int, int, const char[4], int, int, int)'
../src/pngwriter.h:443: error: candidates are: void 
pngwriter::plot_text(char*, int, int, int, double, char*, double, 
double, double)
../src/pngwriter.h:444: error:                 void 
pngwriter::plot_text(char*, int, int, int, double, char*, int, int, 
int)

--------------------

I try:
string ook ( "foo" ) ;
one.plot_text ( ook.c_str(), 10, 900, 1500, ptr2, 65535, 65535, 65535 ) 
;

and the compiler says:
error: no matching function for call to `pngwriter::plot_text( const 
char*, int, int, int, char*&, int, int, int)'
../src/pngwriter.h:443: error: candidates are: void 
pngwriter::plot_text(char*, int, int, int, double, char*, double, 
double, double)
../src/pngwriter.h:444: error:                 void 
pngwriter::plot_text(char*, int, int, int, double, char*, int, int, 
int)

----------------------
I try:
char* foo = "woof" ;
one.plot_text ( foo, 10, 900, 1500, foo, 65535, 65535, 65535 ) ;

and the compiler says:
error: no matching function for call to `pngwriter::plot_text( char*&, 
int, int, int, char*&, int, int, int)'
../src/pngwriter.h:443: error: candidates are: void 
pngwriter::plot_text(char*, int, int, int, double, char*, double, 
double, double)
../src/pngwriter.h:444: error:                 void 
pngwriter::plot_text(char*, int, int, int, double, char*, int, int, 
int)

----------------------

Other variations produce similar results.

What the heck is happening here ?


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
http://pngwriter.sourceforge.net/
PNGwriter-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pngwriter-users

Reply via email to