So simple, so wrong
Edgar
anonymous at easysw.com
Fri Aug 12 02:01:57 PDT 2005
Dears,
as newbie like me could do, i wanna do a simple C program that could print from console.
Context:
- debian sarge with installed libcupsys2-dev
- all the build-essential tools installed
Writing my small file printme.c as the API doc:
------------------------printme.c---------------------------
#include <cups/cups.h>
printf("The default destination is %s\n", cupsGetDefault());
------------------------------------------------------------
and compiling it with:
gcc printme.c -o printme -lcups
as well documented in API doc, i can't compile due the following error:
"error: syntax error before string constant"
for the last line, the "printf" statement.
What's up? What's wrong? Help!
More information about the cups-devel
mailing list