[Dcmlib] gcc
Mathieu Malaterre
mathieu.malaterre at kitware.com
Tue Jul 19 16:42:11 CEST 2005
ifstream -> std::ifstream
max -> std::max
Mathieu
>
> Hi,
>
> After little changes (string => std::string and <string.h> => <string> as well as fstream) here's my compilation error:
>
> /home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx: In function `void drawline(int, int, int, int, int, int, uint8_t*, int, int, int)':
> /home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:39: error: `max' undeclared (first use this function)
> /home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:39: error: (Each undeclared identifier is reported only once for each function it appears in.)
> /home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx: In function `void colorize(int, int, int, int, int, int, int, int, int, int, uint8_t*, int, int, int)':
> /home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:76: error: `max' undeclared (first use this function)
> /home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx: In function `float ReturnVolume(char*, int*)':
> /home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:191: error: `ifstream' undeclared (first use this function)
> /home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:191: error: expected `;' before \"file\"
> /home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:194: error: `file' undeclared (first use this function)
> /home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx: In function `void ReturnCenter(char*, float*)':
> /home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:226: error: `ifstream' undeclared (first use this function)
> /home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:226: error: expected `;' before \"file\"
> /home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:228: error: `file' undeclared (first use this function)
> /home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx: In function `void ReturnVoxelResolution(char*, int*)':
> /home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:253: error: `ifstream' undeclared (first use this function)
> /home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:253: error: expected `;' before \"file\"
> /home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:255: error: `file' undeclared (first use this function)
> /home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx: In function `void GetPicks(char*, std::string*)':
> /home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:277: error: `ifstream' undeclared (first use this function)
> /home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:277: error: expected `;' before \"file\"
> /home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:280: error: `file' undeclared (first use this function)
>
> max is a function I didn't declare, but I didn't create too. I've tried it after a matlab translation hoping that it was allready defined in math.h. It s only 2 lines of code I ll write to create it, but I was surprised that it was compiling with 2.96 and not 3.4.1 :-)
>
> Olivier
>
-------------- next part --------------
_______________________________________________
Dcmlib mailing list
Dcmlib at creatis.insa-lyon.fr
http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
More information about the Dcmlib
mailing list