[Cmake] (no subject)
Bill Hoffman
bill.hoffman at kitware.com
Fri May 23 17:37:14 EDT 2003
Yes, if you include them from <cstdlib> and not <stdlib.h>.
Since most compilers do not support the std::cfunction stuff, it
is much more portable to use the .h versions of these files, as
both are standards compliant.
-Bill
At 04:55 PM 5/23/2003, John Biddiscombe wrote:
>If I remember correctly...atoi, atof etc are std::atoi etc in the BCB 6
>includes.
>
>JB
>
>----- Original Message -----
>From: <dean.inglis at on.aibn.com>
>To: <cmake at public.kitware.com>
>Sent: Friday, May 23, 2003 3:35 PM
>Subject: [Cmake] (no subject)
>
>
>> I'm having some pb's with building MinSizeRel CMake 1.6.7
>> using Borland C++ Builder 6 (bcc32). I see that there is
>> support for many incarnations of VC and am hoping that
>> I can somehow assist with extending Borland support beyond
>> Borland free command line tools and BCB 5. First crack
>> at building CMake 1.6.7:
>>
>> Building object file cmMakefile.obj...
>> Borland C++ 5.6 for Win32 Copyright (c) 1993, 2002 Borland
>> c:\Builder\CMake_1.6.7\Source\cmMakefile.cxx:
>> Error E2268 c:\Builder\CMake_1.6.7\Source\cmMakefile.cxx 74: Call to
>undefined function 'atoi' in function cmMakefile::GetCacheMajorVersion()
>> Error E2268 c:\Builder\CMake_1.6.7\Source\cmMakefile.cxx 83: Call to
>undefined function 'atoi' in function cmMakefile::GetCacheMinorVersion()
>> Error E2268 c:\Builder\CMake_1.6.7\Source\cmMakefile.cxx 393: Call to
>undefined function 'atof' in function cmMakefile::ConfigureFinalPass()
>> Warning W8004 c:\Builder\CMake_1.6.7\Source\cmMakefile.cxx 407:
>'versionValue' is assigned a value that is never used in function
>cmMakefile::ConfigureFinalPass()
>> Error E2268 c:\Builder\CMake_1.6.7\Source\cmMakefile.cxx 1060: Call to
>undefined function 'getenv' in function
>cmMakefile::ExpandVariablesInString(_STL::string &,bool,bool) const
>> Error E2268 c:\Builder\CMake_1.6.7\Source\cmMakefile.cxx 1394: Call to
>undefined function 'atof' in function
>cmMakefile::ExpandSourceListArguments(const
>_STL::vector<_STL::string,_STL::allocator<_STL::string> >
>&,_STL::vector<_STL::string,_STL::allocator<_STL::string> > &,unsigned int)
>> Warning W8004 c:\Builder\CMake_1.6.7\Source\cmMakefile.cxx 1417:
>'versionValue' is assigned a value that is never used in function
>cmMakefile::ExpandSourceListArguments(const
>_STL::vector<_STL::string,_STL::allocator<_STL::string> >
>&,_STL::vector<_STL::string,_STL::allocator<_STL::string> > &,unsigned int)
>> *** 5 errors in Compile ***
>>
>> I had similar pbs with ITK and BCB6 (see post thread):
>> http://www.itk.org/pipermail/insight-users/2003-May/003642.html
>>
>> Second crack by adding -D_USE_OLD_RW_STL (use old Rogue Wave
>implementation of STL)
>> to cache value CMAKE_CXX_FLAGS:STRING:
>>
>> Borland C++ 5.6 for Win32 Copyright (c) 1993, 2002 Borland
>> c:\Builder\CMake_1.6.7\Source\cmDumpDocumentation.cxx:
>> Building executable c:\Builder\CMake_1.6.7\Source\DumpDocumentation.exe...
>> Borland C++ 5.6 for Win32 Copyright (c) 1993, 2002 Borland
>> Turbo Incremental Link 5.60 Copyright (c) 1997-2002 Borland
>> Error: Unresolved external 'cmMakefile::ExpandArguments(const
>_STL::vector<cmListFileArgument, _STL::allocator<cmListFileArgument> >&,
>...' referenced from C:\BUILDER\CMAKE_1.6.7\SOURCE\CMAKELIB.LIB|cmake
>> Error: Unresolved external 'GetPredefinedCommands(_STL::list<cmCommand *,
>_STL::allocator<cmCommand *> >&)' referenced from
>C:\BUILDER\CMAKE_1.6.7\SOURCE\CMAKELIB.LIB|cmake
>> Error: Unresolved external 'cmVariableWatch::AddWatch(const
>_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> >&,
>void (*)(const _STL::basic_string<char, _STL::char_traits<char>,
>_STL::allocator<char> >&, int, void *), void *)' referenced from
>C:\BUILDER\CMAKE_1.6.7\SOURCE\CMAKELIB.LIB|cmake
>> Error: Unresolved external
>'cmake::DumpDocumentationToFile(std::basic_ostream<char,
>std::char_traits<char> >&)' referenced from
>C:\BUILDER\CMAKE_1.6.7\SOURCE\CMDUMPDOCUMENTATION.OBJ
>>
>> I can help out as required...
>>
>> Dean
>>
>> _______________________________________________
>> Cmake mailing list
>> Cmake at public.kitware.com
>> http://public.kitware.com/mailman/listinfo/cmake
>>
>
>_______________________________________________
>Cmake mailing list
>Cmake at public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake
More information about the CMake
mailing list