[Insight-users] #include <stdlib.h> missing

Luca Picello luca.picello at libero.it
Wed Jul 27 19:35:22 EDT 2005


It is my first time compiling ITK sources (it is from daily CVS) with 
Borland C++ Builder 6.
The compiler tells me:

Z:\Insight\Utilities\MetaIO\metaCommand.cxx:
Error E2268 Z:\Insight\Utilities\MetaIO\metaCommand.cxx 238: Call to 
undefined f
unction 'atof' in function 
MetaCommand::GetValueAsFloat(_STL::string,_STL::strin
g)
Error E2268 Z:\Insight\Utilities\MetaIO\metaCommand.cxx 262: Call to 
undefined f
unction 'atof' in function 
MetaCommand::GetValueAsFloat(MetaCommand::Option,_STL
::string)
Error E2268 Z:\Insight\Utilities\MetaIO\metaCommand.cxx 288: Call to 
undefined f
unction 'atoi' in function 
MetaCommand::GetValueAsInt(_STL::string,_STL::string)

Error E2268 Z:\Insight\Utilities\MetaIO\metaCommand.cxx 312: Call to 
undefined f
unction 'atoi' in function 
MetaCommand::GetValueAsInt(MetaCommand::Option,_STL::
string)
Error E2268 Z:\Insight\Utilities\MetaIO\metaCommand.cxx 527: Call to 
undefined f
unction 'atoi' in function MetaCommand::ParseXML(const char *)
Error E2268 Z:\Insight\Utilities\MetaIO\metaCommand.cxx 535: Call to 
undefined f
unction 'atoi' in function MetaCommand::ParseXML(const char *)
Error E2268 Z:\Insight\Utilities\MetaIO\metaCommand.cxx 547: Call to 
undefined f
unction 'atoi' in function MetaCommand::ParseXML(const char *)
Error E2268 Z:\Insight\Utilities\MetaIO\metaCommand.cxx 555: Call to 
undefined f
unction 'atoi' in function MetaCommand::ParseXML(const char *)
Error E2268 Z:\Insight\Utilities\MetaIO\metaCommand.cxx 760: Call to 
undefined f
unction 'atof' in function MetaCommand::Parse(int,char * *)
*** 9 errors in Compile ***

** error 1 ** deleting metaCommand.obj

in borlandc, atof() and atoi() are defined in <stdlib.h>

Luca



More information about the Insight-users mailing list