I am an experienced C developer, but also a newbie in C++.
I am trying to compile and run the following code snippet on Linux:
FieldIterator itr = doc.GetFieldIte rator();
while (itr.HasNext()) {
Field field = itr.Current();
Console.WriteLi ne("Field name: {0}", field.GetName() );
itr.Next();
}
Since my g++ compiler doesn't like the "Console.WriteL ine()"
statement, I googled for it, and it seems to be some Windows-specific
construct. What can I use as a replacement? Obviously, I tried
"printf()" but the argument is not a string.
TIA,
-RFH
Comment