Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

makefile - xcode - C++ macro error



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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.