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 6001257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:48:33+00:00 2026-05-23T00:48:33+00:00

I am developing a framework which requires very strict compiler settings. Every time a

  • 0

I am developing a framework which requires very strict compiler settings. Every time a new project is started and uses the framework, it must adhere to the settings (for example, warning level 4). Is there any way I can do that via macros and pragma statements? This will also allow me to do something like:

#ifndef NOT_USING_STRICT_SETTINGS
// All settings checks go here OR settings over-rides go here
#endif

This will benefit me as well in case I create a new project and forget to apply some settings.

  • 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-23T00:48:34+00:00Added an answer on May 23, 2026 at 12:48 am

    You can get the list of predefined macros from MSDN: http://msdn.microsoft.com/en-us/library/b0084kay(v=vs.80).aspx

    These macros also allow checking for compiler directives.

    Example:

    #define USING_STRICT_SETTINGS defined(_MT) && defined(_OPENMP)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing an application targeting .NET Framework 2.0 using C# for which I need
I am developing a form in .NET Compact Framework, which hosts a variable number
I'm developing a site using the CakePHP framework. I have a form which shows
Some software I am developing requires the presence of a USB device (which I
I'm developing a framework which programs parts of itself dynamically after creating ER-Diagrams in
Dofactory has a 3.5 framework for developing software and includes some design patterns which
I am developing a web app which requires a username and password to be
I am developing a small business application which uses Sqlserver 2005 database. Platform: .Net
I've just started learning Obj-C and the Cocoa-Touch framework for developing iPhone and iPad
I was looking for a book or msdn article for developing a framework/library which

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.