Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6907367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:25:33+00:00 2026-05-27T08:25:33+00:00

Are compiler settings set per project or once and for all? For example, can

  • 0

Are compiler settings set per project or once and for all?

For example, can one declare:

For all projects i create from this day forth, until told otherwise,
treat all warnings as errors

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T08:25:34+00:00Added an answer on May 27, 2026 at 8:25 am

    If you’re using Xcode*, just use shared/global xcconfig files. Definitions at the project and target levels have precedence if defined, so you can make exceptions and/or combine them in many ways.

    Xcconfig Crash Course:

    This Q+A will explain the configuration.

    Then you just fill the xcconfig file with the build settings you want, like so:

    ADDITIONAL_SDKS = 
    ARCHS = x86_64
    SDKROOT = macosx10.7
    ONLY_ACTIVE_ARCH = NO
    SUPPORTED_PLATFORMS = macosx
    VALID_ARCHS = i386 ppc ppc64 ppc7400 ppc970 x86_64
    

    Other notes:

    • You can #include xcconfig files in xcconfig files (with some restrictions)
    • You can drag+drop build settings from Xcode’s build settings view to a text file.

    So, if all you want is “Treat warnings as errors”, your xcconfig would have this:

    GCC_TREAT_WARNINGS_AS_ERRORS = YES
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The compiler complains about this, after I activated all kind of warnings: For MyApp_Prefix.pch
I have different behaviour of compiler, when building project from IDE and from command-line,
After starting Eclipse, Mven seems to set the compiler settings to 1.5 and forget
All the information I've found regarding compiler settings is with regards to the full
I'm trying to compile a set of .c files from an open source project
In the project properties, in the Java Compiler section, there are some settings for
Compiler Error Keyword 'this' is not available in the current context delegate void CallBack(int
The compiler doesn't know where stat.h is? Error: c:\Projects\ADC_HCI\mongoose.c(745) : error C2079: 'st' uses
Consider a situation. We have some specific C++ compiler, a specific set of compiler
I have a collection (set) of ActiveX controls. I recieved them from our vendor

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.