"too many initializers"
Posted on 2008-11-11
I get the compiler error C2078: too many initializers. Why ? I retyped the source, it does not seem anything like invisible characters causing the bug.
Here is the source extract, with the error located at line 9:
HPDF_Page_SetFontAndSize(page, "Helvetica", 10);
;// On this line, I get the following compiler error: error C2078: too many initializers
HPDF_Page_ShowText (page, "Test text");
and here is the extract from the *.h file:
HPDF_Page_MoveTextPos (HPDF_Page page,
typedef float HPDF_REAL;
This part of the program is supposed to write some text into a pdf which is being created by the libharu library. To include a jpeg into the pdf already works fine, but to write a title, I failed. I guess the problem is the c++ syntax, and not something around this libharu.
In a demo program, I see function calls such as "HPDF_Page_MoveTextPos (page, x - 20, y - 25);", so I really cannot see any difference to what I did.
I am sure it is one of those tiny bugs you have no chance to find them after analysing it for too long. So I would apprechiate your fresh look :-)
Best regards, Sonja