makefile - xcode - C++ macro error
makefile - xcode - C++ macro error
- Subject: makefile - xcode - C++ macro error
- From: "Bruce Johnson" <email@hidden>
- Date: Thu, 5 Apr 2007 22:10:16 -0700
I'm working to move some C++ code from a makefile set-up to an xcode project.
I'm trying to compile a universal BSD library (.a file) from my C++
source files. I continually get the error:
/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
...
(then a long list of similar errors)
From my research I'm finding that apparently the compiler confuses the function
template<typename _CharT>
inline bool
isspace(_CharT, const locale&);
in localefwd.h
with the macro
#define isspace(c) __istype((c), _CTYPE_S)
in ctype.h
I include <iostream>
When I build the library with my old makefile it builds just fine.
I've tried to duplicate the makefile settings within xcode, but I get
the errors.
I've kind of run into a dead end. Any thoughts?
--
----
Bruce Johnson
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden