Code: Select all
OFListConstIterator(OFString) iterator;
for(iterator=inputfilenames.begin(); iterator!=inputfilenames.end(); iterator++;)
{
std::cout << "STUFF" <<std::endl;
// Read and insert pixel data
cond = readAndInsertPixelData(inputPlug, resultDset, proposedTS);
if (cond.bad())
{
delete resultDset; resultDset = NULL;
return cond;
}
}
But gcc fails on the second line. My for loop looks perfectly formed. I don't see what the problem with it is. Do you see anything wrong with it?
2d.cc:105:81: error: expected ')'
for(iterator=inputfilenames.begin(); iterator!=inputfilenames.end();iterator++;)
^
i2d.cc:105:6: note: to match this '('
for(iterator=inputfilenames.begin(); iterator!=inputfilenames.end();iterator++;)
^
i2d.cc:105:82: error: expected expression
for(iterator=inputfilenames.begin(); iterator!=inputfilenames.end();iterator++;)
^
i2d.cc:119:36: error: use of undeclared identifier 'srcIsLossy'
if (inputPlug->getLossyComprInfo(srcIsLossy, comprMethod).good()) //TODO)
^
i2d.cc:121:9: error: use of undeclared identifier 'srcIsLossy'
if (srcIsLossy)
^
4 errors generated.