LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: TAN TH (tanthiamhuat_at_[hidden])
Date: 2005-11-29 02:24:27


http://www.lam-mpi.org/tutorials/nd/part1/

from above website, has anyone successfully compiled
the
imageproc.c file or image.c?

seem to me that it is not that straight forward.
when I try this:

$ mpicc -o imageproc imageproc.c -lm

the compiler is complaining that the function
`loadtiff' is not referenced.

also, I try to compile image.c using:
$ mpicc -o image image.c -lm

it gives me a whole list of errors.

any workable suggestions are highly appreciated.
see attached file. Use WordPad to open.

thanks.
Sincerely,
Thiam Huat

                
__________________________________
Yahoo! Music Unlimited
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/

[thtan_at_swrc thtan]$ cd LAM
[thtan_at_swrc LAM]$ cd codes
[thtan_at_swrc codes]$ mpicc -o imageproc imageproc.c -lm
/tmp/ccDypKaq.o(.text+0x77): In function `main':
: undefined reference to `loadtiff'
collect2: ld returned 1 exit status
mpicc: No such file or directory
[thtan_at_swrc codes]$ mpicc -o image image.c -lm
image.c:20:20: tiffio.h: No such file or directory
image.c:21:18: tiff.h: No such file or directory
image.c:31: error: syntax error before "uint32"
image.c:31: warning: no semicolon at end of struct or union
image.c:32: warning: data definition has no type or storage class
image.c:33: error: syntax error before "p"
image.c:33: warning: data definition has no type or storage class
image.c:41: error: syntax error before '}' token
image.c:41: warning: data definition has no type or storage class
image.c: In function `dumpTiff':
image.c:51: error: `TIFF' undeclared (first use in this function)
image.c:51: error: (Each undeclared identifier is reported only once
image.c:51: error: for each function it appears in.)
image.c:51: error: `tfp' undeclared (first use in this function)
image.c:52: error: `uint32' undeclared (first use in this function)
image.c:52: error: syntax error before "pixelsPerRaster"
image.c:55: error: `pixelsPerRaster' undeclared (first use in this function)
image.c:63: error: `TIFFTAG_IMAGEWIDTH' undeclared (first use in this function)
image.c:64: error: `TIFFTAG_IMAGELENGTH' undeclared (first use in this function)
image.c:65: error: `TIFFTAG_ORIENTATION' undeclared (first use in this function)
image.c:65: error: `ORIENTATION_TOPLEFT' undeclared (first use in this function)
image.c:66: error: `TIFFTAG_BITSPERSAMPLE' undeclared (first use in this functio
n)
image.c:67: error: `TIFFTAG_PLANARCONFIG' undeclared (first use in this function
)
image.c:67: error: `PLANARCONFIG_CONTIG' undeclared (first use in this function)
image.c:71: error: `PLANARCONFIG_SEPARATE' undeclared (first use in this functio
n)
image.c:72: error: `TIFFTAG_SAMPLESPERPIXEL' undeclared (first use in this funct
ion)
image.c:73: error: `TIFFTAG_PHOTOMETRIC' undeclared (first use in this function)
image.c:73: error: `PHOTOMETRIC_RGB' undeclared (first use in this function)
image.c: At top level:
image.c:116: error: syntax error before "bps"
image.c: In function `tiffToIOFormat':
image.c:120: error: `pm' undeclared (first use in this function)
image.c:121: error: `PHOTOMETRIC_MINISBLACK' undeclared (first use in this funct
ion)
image.c:122: error: `PHOTOMETRIC_MINISWHITE' undeclared (first use in this funct
ion)
image.c:123: error: `bps' undeclared (first use in this function)
image.c:140: error: `PHOTOMETRIC_PALETTE' undeclared (first use in this function
)
image.c:155: error: `PHOTOMETRIC_RGB' undeclared (first use in this function)
image.c:156: error: `spp' undeclared (first use in this function)
image.c: At top level:
image.c:197: error: syntax error before '*' token
image.c: In function `loadContigStripData':
image.c:201: error: `uint32' undeclared (first use in this function)
image.c:201: error: syntax error before "rowsPerStrip"
image.c:209: error: `tfp' undeclared (first use in this function)
image.c:216: error: `TIFFTAG_ROWSPERSTRIP' undeclared (first use in this functio
n)
image.c:216: error: `rowsPerStrip' undeclared (first use in this function)
image.c:219: error: `topRow' undeclared (first use in this function)
image.c:219: error: `h' undeclared (first use in this function)
image.c:220: error: `nRowsToConvert' undeclared (first use in this function)
image.c:223: error: `scanLineSize' undeclared (first use in this function)
image.c:228: error: `srcPixel' undeclared (first use in this function)
image.c:228: error: `samplesPerPixel' undeclared (first use in this function)
image.c:229: error: `dstPixel' undeclared (first use in this function)
image.c:230: error: `sample' undeclared (first use in this function)
image.c:230: error: `samplesToLoad' undeclared (first use in this function)
image.c:231: error: `raster' undeclared (first use in this function)
image.c: At top level:
image.c:246: error: syntax error before '*' token
image.c: In function `loadSeparateStripData':
image.c:250: error: `uint32' undeclared (first use in this function)
image.c:250: error: syntax error before "rowsPerStrip"
image.c:259: error: `sample' undeclared (first use in this function)
image.c:259: error: `samplesToLoad' undeclared (first use in this function)
image.c:260: error: `tfp' undeclared (first use in this function)
image.c:262: error: `i' undeclared (first use in this function)
image.c:269: error: `TIFFTAG_ROWSPERSTRIP' undeclared (first use in this functio
n)
image.c:269: error: `rowsPerStrip' undeclared (first use in this function)
image.c:272: error: `topRow' undeclared (first use in this function)
image.c:272: error: `h' undeclared (first use in this function)
image.c:273: error: `nRowsToConvert' undeclared (first use in this function)
image.c:276: error: `scanLineSize' undeclared (first use in this function)
image.c:283: error: `srcPixel' undeclared (first use in this function)
image.c:283: error: `dstPixel' undeclared (first use in this function)
image.c:285: error: `raster' undeclared (first use in this function)
image.c: At top level:
image.c:301: error: syntax error before '*' token
image.c: In function `loadContigTileData':
image.c:305: error: `uint32' undeclared (first use in this function)
image.c:305: error: syntax error before "rowsPerTile"
image.c:317: error: `tfp' undeclared (first use in this function)
image.c:323: error: `TIFFTAG_TILELENGTH' undeclared (first use in this function)
image.c:323: error: `rowsPerTile' undeclared (first use in this function)
image.c:324: error: `TIFFTAG_TILEWIDTH' undeclared (first use in this function)
image.c:324: error: `colsPerTile' undeclared (first use in this function)
image.c:326: error: `topRow' undeclared (first use in this function)
image.c:326: error: `h' undeclared (first use in this function)
image.c:327: error: `nRowsToConvert' undeclared (first use in this function)
image.c:328: error: `leftCol' undeclared (first use in this function)
image.c:329: error: `nColsToConvert' undeclared (first use in this function)
image.c:337: error: `tileRowOffset' undeclared (first use in this function)
image.c:338: error: `i' undeclared (first use in this function)
image.c:339: error: `j' undeclared (first use in this function)
image.c:340: error: `sample' undeclared (first use in this function)
image.c:340: error: `samplesToLoad' undeclared (first use in this function)
image.c:341: error: `raster' undeclared (first use in this function)
image.c:342: error: `samplesPerPixel' undeclared (first use in this function)
image.c: At top level:
image.c:362: error: syntax error before '*' token
image.c: In function `loadSeparateTileData':
image.c:366: error: `uint32' undeclared (first use in this function)
image.c:366: error: syntax error before "rowsPerTile"
image.c:378: error: `sample' undeclared (first use in this function)
image.c:378: error: `samplesToLoad' undeclared (first use in this function)
image.c:379: error: `tfp' undeclared (first use in this function)
image.c:383: error: `i' undeclared (first use in this function)
image.c:387: error: `TIFFTAG_TILELENGTH' undeclared (first use in this function)
image.c:387: error: `rowsPerTile' undeclared (first use in this function)
image.c:388: error: `TIFFTAG_TILEWIDTH' undeclared (first use in this function)
image.c:388: error: `colsPerTile' undeclared (first use in this function)
image.c:390: error: `topRow' undeclared (first use in this function)
image.c:390: error: `h' undeclared (first use in this function)
image.c:391: error: `nRowsToConvert' undeclared (first use in this function)
image.c:392: error: `leftCol' undeclared (first use in this function)
image.c:393: error: `nColsToConvert' undeclared (first use in this function)
image.c:402: error: `tileRowOffset' undeclared (first use in this function)
image.c:404: error: `j' undeclared (first use in this function)
image.c:406: error: `raster' undeclared (first use in this function)
image.c: At top level:
image.c:427: error: syntax error before "ulHeight"
image.c: In function `allocImagePlane':
image.c:430: error: `uint32' undeclared (first use in this function)
image.c:430: error: syntax error before "ulImageRow"
image.c:433: error: `ulHeight' undeclared (first use in this function)
image.c:438: error: `ulWidth' undeclared (first use in this function)
image.c:444: error: `ulImageRow' undeclared (first use in this function)
image.c: At top level:
image.c:459: error: syntax error before "ulPlanes"
image.c: In function `allocImageData':
image.c:462: error: `uint32' undeclared (first use in this function)
image.c:462: error: syntax error before "ulPlaneNum"
image.c:466: error: `ulPlanes' undeclared (first use in this function)
image.c:472: error: `ulHeight' undeclared (first use in this function)
image.c:472: error: `ulWidth' undeclared (first use in this function)
image.c:476: error: `ulPlaneNum' undeclared (first use in this function)
image.c: At top level:
image.c:509: error: syntax error before "uint32"
image.c: In function `freeImageData':
image.c:511: error: `uint32' undeclared (first use in this function)
image.c:511: error: syntax error before "ulImagePlane"
image.c: In function `loadtiff':
image.c:533: error: syntax error before "image"
image.c:535: error: `image' undeclared (first use in this function)
image.c: At top level:
image.c:588: error: syntax error before "IMAGE"
image.c: In function `loadTiffStatic':
image.c:590: error: `TIFF' undeclared (first use in this function)
image.c:590: error: `tfp' undeclared (first use in this function)
image.c:591: error: `uint32' undeclared (first use in this function)
image.c:591: error: syntax error before "h"
image.c:594: error: `uint16' undeclared (first use in this function)
image.c:604: error: `path' undeclared (first use in this function)
image.c:610: error: `TIFFTAG_ORIENTATION' undeclared (first use in this function
)
image.c:610: error: `orientation' undeclared (first use in this function)
image.c:615: error: `TIFFTAG_IMAGELENGTH' undeclared (first use in this function
)
image.c:615: error: `h' undeclared (first use in this function)
image.c:620: error: `TIFFTAG_IMAGEWIDTH' undeclared (first use in this function)
image.c:625: error: `TIFFTAG_BITSPERSAMPLE' undeclared (first use in this functi on)
image.c:625: error: `bps' undeclared (first use in this function)
image.c:630: error: `TIFFTAG_PHOTOMETRIC' undeclared (first use in this function )
image.c:630: error: `pm' undeclared (first use in this function)
image.c:635: error: `TIFFTAG_SAMPLESPERPIXEL' undeclared (first use in this func tion)
image.c:635: error: `spp' undeclared (first use in this function)
image.c:647: error: `sppDest' undeclared (first use in this function)
image.c:669: error: `ORIENTATION_TOPLEFT' undeclared (first use in this function )
image.c:674: error: `TIFFTAG_PLANARCONFIG' undeclared (first use in this functio n)
image.c:674: error: `planarConfig' undeclared (first use in this function)
image.c:688: error: `PLANARCONFIG_SEPARATE' undeclared (first use in this functi on)
image.c:728: error: `image' undeclared (first use in this function)
mpicc: No such file or directory
[thtan_at_swrc codes]$