[vtkusers] SimpleCocoaVTK1.3 building errors
Feng Ding
carlding at gmail.com
Tue Feb 19 07:01:22 EST 2008
Dear list,
I'm following both the instructions on
http://www.vtk.org/Wiki/Cocoa_VTK and the one included in the zip file
to build SimpleCocoaVTK1.3. Xcode gave me quite a number of errors,
part of which are as follows:
...
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/localefwd.h:58:34:
error: macro "isspace" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/localefwd.h:62:34:
error: macro "isprint" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/localefwd.h:66:34:
error: macro "iscntrl" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/localefwd.h:70:34:
error: macro "isupper" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/localefwd.h:74:34:
error: macro "islower" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/localefwd.h:78:34:
error: macro "isalpha" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/localefwd.h:82:34:
error: macro "isdigit" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/localefwd.h:86:34:
error: macro "ispunct" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/localefwd.h:90:35:
error: macro "isxdigit" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/localefwd.h:94:34:
error: macro "isalnum" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/localefwd.h:98:34:
error: macro "isgraph" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/localefwd.h:102:34:
error: macro "toupper" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/localefwd.h:106:34:
error: macro "tolower" passed 2 arguments, but takes just 1
In file included from
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/basic_ios.h:44,
from
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/ios:50,
from
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/istream:44,
from
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/iomanip:45,
from /misc/VTKBuild/include/vtk-5.1/vtkIOStream.h:37,
from /misc/VTKBuild/include/vtk-5.1/vtkSystemIncludes.h:40,
from /misc/VTKBuild/include/vtk-5.1/vtkIndent.h:24,
from /misc/VTKBuild/include/vtk-5.1/vtkObjectBase.h:43,
from /misc/VTKBuild/include/vtk-5.1/vtkObject.h:41,
from /misc/VTKBuild/include/vtk-5.1/vtkViewport.h:32,
from /misc/VTKBuild/include/vtk-5.1/vtkRenderer.h:32,
from /Users/dingfeng/workspace/SimpleCocoaVTK/BasicVTKView.h:5,
from /Users/dingfeng/workspace/SimpleCocoaVTK/MyDocument.mm:3:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/locale_facets.h:241:53:
error: macro "toupper" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/locale_facets.h:270:53:
error: macro "tolower" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/locale_facets.h:813:53:
error: macro "toupper" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/locale_facets.h:846:53:
error: macro "tolower" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/locale_facets.h:4502:44:
error: macro "isspace" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/locale_facets.h:4508:44:
error: macro "isprint" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/locale_facets.h:4514:44:
error: macro "iscntrl" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/locale_facets.h:4520:44:
error: macro "isupper" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/locale_facets.h:4526:44:
error: macro "islower" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/locale_facets.h:4532:44:
error: macro "isalpha" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/locale_facets.h:4538:44:
error: macro "isdigit" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/locale_facets.h:4544:44:
error: macro "ispunct" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/locale_facets.h:4550:45:
error: macro "isxdigit" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/locale_facets.h:4556:44:
error: macro "isalnum" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/locale_facets.h:4562:44:
error: macro "isgraph" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/locale_facets.h:4568:44:
error: macro "toupper" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/locale_facets.h:4574:44:
error: macro "tolower" passed 2 arguments, but takes just 1
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/char_traits.h:108:
error: 'std::size_t' has not been declared
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/char_traits.h:110:
error: 'size_t' in namespace 'std' does not name a type
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/char_traits.h:114:
error: 'std::size_t' has not been declared
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/char_traits.h:117:
error: 'std::size_t' has not been declared
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/char_traits.h:120:
error: 'std::size_t' has not been declared
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/char_traits.h:123:
error: 'std::size_t' has not been declared
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/char_traits.h:149:
error: 'std::size_t' has not been declared
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/char_traits.h:161:
error: expected constructor, destructor, or type conversion before
'char_traits'
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/char_traits.h:173:
error: 'std::size_t' has not been declared
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/char_traits.h:
In static member function 'static const typename
__gnu_cxx::char_traits<_CharT>::char_type*
__gnu_cxx::char_traits<_CharT>::find(const _CharT*, int, const
_CharT&)':
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/char_traits.h:175:
error: 'size_t' is not a member of 'std'
...
My OS is 10.4.11, with Xcode 2.5 installed. I'm not sure what is going
on, please help. Thanks!
Best regards,
DING Feng
More information about the vtkusers
mailing list