• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
definition of macro 'DEBUG' conflicts with an identifier used in the precompiled header
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

definition of macro 'DEBUG' conflicts with an identifier used in the precompiled header


  • Subject: definition of macro 'DEBUG' conflicts with an identifier used in the precompiled header
  • From: David Dunham <email@hidden>
  • Date: Mon, 07 Sep 2009 11:28:31 -0700

I tried switching my compiler to clang, and get a lot of errors like

CompileC /Users/david/Library/Caches/build/Theobroma.build/Debug/ Opal.build/Objects-normal/i386/MyDocument.o MyDocument.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/david/software/Raven/Theobroma
setenv LANG en_US.US-ASCII
/Developer/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 - pipe -fdiagnostics-print-source-range-info -Wno-trigraphs -fpascal- strings -O0 -Wreturn-type -Wmissing-braces -Wunused-function -Wunused- parameter -Wunused-variable -Wunused-value -Wnewline-eof -DDEBUG - isysroot /Developer/SDKs/MacOSX10.5.sdk -fasm-blocks -mfix-and- continue -mmacosx-version-min=10.4 -gdwarf-2 -I/Users/david/Library/ Caches/build/Theobroma.build/Debug/Opal.build/Opal-D.hmap -Wmost -Wno- four-char-constants -Wno-unknown-pragmas -F/Users/david/software/Raven/ Theobroma/build/Debug -F/Users/david/software/Raven/Theobroma -I/Users/ david/software/Raven/Theobroma/build/Debug/include -I/Users/david/ Library/Caches/build/Theobroma.build/Debug/Opal.build/DerivedSources/ i386 -I/Users/david/Library/Caches/build/Theobroma.build/Debug/ Opal.build/DerivedSources -include /var/folders/d5/d5rMDW-c2Pao9E +8ZNblD++++TM/-Caches-/com.apple.Xcode.502/SharedPrecompiledHeaders/ Theobroma_Prefix-ebmnrdorvgeoshenaoylgdjkchoc/Theobroma_Prefix.pch - DDEBUG -c /Users/david/software/Raven/Theobroma/MyDocument.m -o /Users/ david/Library/Caches/build/Theobroma.build/Debug/Opal.build/Objects- normal/i386/MyDocument.o


error: definition of macro 'DEBUG' conflicts with an identifier used in the precompiled header

I have

GCC_PREPROCESSOR_DEFINITIONS_NOT_USED_IN_PRECOMPS = DEBUG

The GCC_PREFIX_HEADER file contains only

#ifdef __OBJC__
    #import <Cocoa/Cocoa.h>
#endif

Needless to say, it all worked when I was using GCC 4.

Do I need to use GCC_PREPROCESSOR_DEFINITIONS instead? I seem to remember preferring GCC_PREPROCESSOR_DEFINITIONS_NOT_USED_IN_PRECOMPS because I'd end up with fewer precompilations.

David Dunham A Sharp, LLC
Voice/Fax: 206 783 7404 http://a-sharp.com
"People seem to misinterpret complexity as sophistication" -- Niklaus Wirth



_______________________________________________ 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
  • Prev by Date: Switching from GCC to Clang, any downsides?
  • Next by Date: distcc fail on Snow Leopard
  • Previous by thread: Re: Switching from GCC to Clang, any downsides?
  • Next by thread: distcc fail on Snow Leopard
  • Index(es):
    • Date
    • Thread