Add a New Comment (Rich Markup)
Comment Type & Canned Response: None No canned response available
fixed
This isn't related to OS X or Xcode, but Clang itself, cf. the Debian Clang rebuild.
(file #31132)
XCode g++ doesn't seem to like friend declarations:
g++ -DHAVE_CONFIG_H -I. -I./.. -O2 -g -Wall -W -Wwrite-strings -trigraphs -MT ddd.o -MD -MP -MF .deps/ddd.Tpo -c -o ddd.o ddd.C In file included from ddd.C:134: In file included from ./ddd.h:31: ./strclass.h:813:19: error: friend declaration specifying a default argument must be a definition friend string common_prefix(const string& x, const string& y, ^ ./strclass.h:815:19: error: friend declaration specifying a default argument must be a definition friend string common_suffix(const string& x, const string& y, ^ ./strclass.h:866:16: error: friend declaration specifying a default argument must be a definition friend int readline(std::istream& s, string& x, ...
g++ version information: g++ --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1 Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn) Target: x86_64-apple-darwin13.1.0 Thread model: posix
---
Also tried installing DDD from MacPorts using g++ from MacPorts with the same result: g++ (MacPorts gcc48 4.8.2_0) 4.8.2 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Only logged-in users can vote.
Please enter the title of George Orwell's famous dystopian book (it's a date):
Follow 4 latest changes.
Copyright © 2023 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.9