Dear Hongyon
Thanks for the answer
These are the error messages from 2 files I get under cygwin. All this does not happen with Linux.
I would appreciate your help
A_bra
“e:\fsl4.1-pgcc-clean\src\fast\zimage/common/handler.cpp”, line 39: error #20:
identifier “_set_new_handler” is undefined
_set_new_handler(new_failed);
^
“C:/Programme/PGI/Microsoft Open Tools 8/PlatformSDK/include/wingdi.h”, line 688: error #256:
invalid redeclaration of type name “BITMAPINFOHEADER” (declared at
line 27 of “zimage/imagebase/bitmap.h”)
} BITMAPINFOHEADER, FAR *LPBITMAPINFOHEADER, *PBITMAPINFOHEADER;
^
“C:/Programme/PGI/Microsoft Open Tools 8/PlatformSDK/include/wingdi.h”, line 761: error #256:
invalid redeclaration of type name “BITMAPINFO” (declared at line 42
of “zimage/imagebase/bitmap.h”)
} BITMAPINFO, FAR *LPBITMAPINFO, *PBITMAPINFO;
^
“e:\fsl4.1-pgcc-clean\src\fast\zimage/imagebase/image.cpp”, line 1394: error #792:
“double Opt<ZRGB>::min” is not an entity that can be
explicitly specialized
template <> double Opt< ZRGB >::min = 0; //MinValue();
^
“e:\fsl4.1-pgcc-clean\src\fast\zimage/imagebase/image.cpp”, line 1395: error #792:
“double Opt<ZRGB>::max” is not an entity that can be
explicitly specialized
template <> double Opt< ZRGB >::max = 255; //MaxValue();
^
“e:\fsl4.1-pgcc-clean\src\fast\zimage/imagebase/image.cpp”, line 1396: error #792:
“double Opt<ZRGB>::min” is not an entity that can be
explicitly specialized
template <> double Opt< ZRGB >::min = -32768.0; //MinValue();
^
“e:\fsl4.1-pgcc-clean\src\fast\zimage/imagebase/image.cpp”, line 1397: error #792:
“double Opt<ZRGB>::max” is not an entity that can be
explicitly specialized
template <> double Opt< ZRGB >::max = 32767; //MaxValue();
^
“e:\fsl4.1-pgcc-clean\src\fast\zimage/imagebase/image.cpp”, line 1398: error #792:
“double Opt<ZRGB>::min” is not an entity that can be
explicitly specialized
template <> double Opt< ZRGB >::min = 0; //MinValue();
^
“e:\fsl4.1-pgcc-clean\src\fast\zimage/imagebase/image.cpp”, line 1399: error #792:
“double Opt<ZRGB>::max” is not an entity that can be
explicitly specialized
template <> double Opt< ZRGB >::max = 65536; // MaxValue();
^
“e:\fsl4.1-pgcc-clean\src\fast\zimage/imagebase/image.cpp”, line 1400: error #792:
“double Opt<ZRGB>::min” is not an entity that can be explicitly
specialized
template <> double Opt< ZRGB >::min = -2147483648.0; //MinValue();
^
“e:\fsl4.1-pgcc-clean\src\fast\zimage/imagebase/image.cpp”, line 1401: error #792:
“double Opt<ZRGB>::max” is not an entity that can be explicitly
specialized
template <> double Opt< ZRGB >::max = 2147483647.0; //MaxValue();
^
“e:\fsl4.1-pgcc-clean\src\fast\zimage/imagebase/image.cpp”, line 1404: error #792:
“double Opt<ZRGB>::min” is not an entity that can be
explicitly specialized
template <> double Opt< ZRGB >::min = -2147483648.0; //MinValue();
^
“e:\fsl4.1-pgcc-clean\src\fast\zimage/imagebase/image.cpp”, line 1405: error #792:
“double Opt<ZRGB>::max” is not an entity that can be
explicitly specialized
template <> double Opt< ZRGB >::max = 2147483647.0; //MaxValue();
^
“e:\fsl4.1-pgcc-clean\src\fast\zimage/imagebase/imagebase.cpp”, line 516: error #147:
declaration is incompatible with
"bool ZImageBase::FillBitmapInfo(BITMAPINFO ) const" (declared at
line 287 of “zimage/imagebase/imagebase.h”)
bool ZImageBase::FillBitmapInfo(BITMAPINFO pbmpinfo) const
^
“e:\fsl4.1-pgcc-clean\src\fast\zimage/imagebase/imagebase.cpp”, line 547: error #147:
declaration is incompatible with
“void ZImageBase::FillBitmapInfoHeader(BITMAPINFOHEADER &) const”
(declared at line 288 of “zimage/imagebase/imagebase.h”)
void ZImageBase::FillBitmapInfoHeader(BITMAPINFOHEADER& bmpinfoheader) const
^
“e:\fsl4.1-pgcc-clean\src\fast\zimage/imageio/fileavw.cpp”, line 24: error #144:
a value of type “const char *” cannot be used to initialize an
entity of type "char "
char ext=strrchr(fname, ‘.’);
^
“e:\fsl4.1-pgcc-clean\src\fast\zimage/imageio/imagereader.cpp”, line 79: error #144:
a value of type “const char *” cannot be used to initialize an
entity of type "char "
char PosOfLastDot = strrchr(fname, ‘.’);
^
17 errors detected in the compilation of “mriseg.cpp”.
pgcpp -w -fast -D__PGI -Ie:/fsl4.1-pgcc-clean/extras/include/newmat -Ie:/fsl4.1-pgcc-clean/extras/include/zlib -I. -Ie:/fsl4.1-pgcc-clean/include -Ie:/fsl4.1-pgcc-clean/include -c -o newimagefns.o newimagefns.cc
“e:\fsl4.1-pgcc-clean\src\newimage\newimagefns.h”, line 1349: error #307:
redefinition of default argument
volume susan_convolve(const volume source, const volume& kernel, const float sigmabsq, const bool use_median, int num_usan,volume* usan_area = new volume(1,1,1),volume usan_vol1=volume(1,1,1),const float sigmab1sq=0,volume usan_vol2 = volume(1,1,1),const float sigmab2sq=0)
^
“e:\fsl4.1-pgcc-clean\src\newimage\newimagefns.h”, line 1481: error:
redefinition of default argument
volume convolve(const volume& source, const volume& kernel,
^
“e:\fsl4.1-pgcc-clean\src\newimage\newimagefns.h”, line 1564: error:
redefinition of default argument
volume convolve_separable(const volume& source,
^
“e:\fsl4.1-pgcc-clean\src\newimage\newimagefns.h”, line 2014: error:
redefinition of default argument
volume4D generic_convolve(const volume4D& source, const volume& kernel, bool seperable=false, bool normal=true)
^
4 errors detected in the compilation of “newimagefns.cc”.
make: *** [newimagefns.o] Error 2