R
ramsin.savra
Hi,
I'm using same code for opening a TIFF file in VC++ works just fine but
under linux it says unable to open the tiff file!
Any comment on this?
if (argc < 2)
{
cout << "Not enough parameter" << endl;
cout << "Usage: rst Tiff-Filename" << endl;
cout << endl;
return -1;
}
TIFF* pTifFile = TIFFOpen( argv[1], "r");
if (!pTifFile)
cout << "Unable to open " << argv[1] << " file." << endl;
else
{
cout << argv[1] << " opened sucessfully ..." << endl;
int dirCount = 0;
do
{
dirCount++;
} while(TIFFReadDirectory(pTifFile));
cout << argv[1] << "has " << dirCount << "directories insde" <<
endl;
TIFFClose(pTifFile);
}
I'm using same code for opening a TIFF file in VC++ works just fine but
under linux it says unable to open the tiff file!
Any comment on this?
if (argc < 2)
{
cout << "Not enough parameter" << endl;
cout << "Usage: rst Tiff-Filename" << endl;
cout << endl;
return -1;
}
TIFF* pTifFile = TIFFOpen( argv[1], "r");
if (!pTifFile)
cout << "Unable to open " << argv[1] << " file." << endl;
else
{
cout << argv[1] << " opened sucessfully ..." << endl;
int dirCount = 0;
do
{
dirCount++;
} while(TIFFReadDirectory(pTifFile));
cout << argv[1] << "has " << dirCount << "directories insde" <<
endl;
TIFFClose(pTifFile);
}