<br>Hi,<br><br>After little changes (string => std::string and <string.h> => <string> as well as fstream) here's my compilation error:<br><br>/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)':<br>/home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:39: error: `max' undeclared (first use this function)<br>/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.)<br>/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)':<br>/home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:76: error: `max' undeclared (first use this function)<br>/home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx: In function `float ReturnVolume(char*,
int*)':<br>/home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:191: error: `ifstream' undeclared (first use this function)<br>/home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:191: error: expected `;' before \"file\"<br>/home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:194: error: `file' undeclared (first use this function)<br>/home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx: In function `void ReturnCenter(char*, float*)':<br>/home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:226: error: `ifstream' undeclared (first use this function)<br>/home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:226: error: expected `;' before \"file\"<br>/home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:228: error: `file' undeclared (first use this function)<br>/home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx: In function `void ReturnVoxelResolution(char*,
int*)':<br>/home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:253: error: `ifstream' undeclared (first use this function)<br>/home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:253: error: expected `;' before \"file\"<br>/home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:255: error: `file' undeclared (first use this function)<br>/home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx: In function `void GetPicks(char*, std::string*)':<br>/home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:277: error: `ifstream' undeclared (first use this function)<br>/home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:277: error: expected `;' before \"file\"<br>/home/olivier/Tfe/GDCM/gdcmBin/bin/Tfe/Recalage/exGrey2RGB.cxx:280: error: `file' undeclared (first use this function)<br><br>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 :-)<br><br>Olivier