I'm trying to read a pixel value from an image and output it to the console, using
std::cout << read(25, 56); Should this work? When compiling I get the error message: main.c: In function 'int main()': main.c:38: error: invalid conversion from 'int' to 'void*' /usr/include/unistd.h:312: error: too few arguments to function 'ssize_t read(int, void*, size_t)' main.c:38: error: at this point in file make: *** [main] Error 1 If I remove that single piece of code, it compiles and functions fine (its modified from the burro example). -- http://www.danicity.co.uk ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ http://pngwriter.sourceforge.net/ PNGwriter-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pngwriter-users
