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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:55:31+00:00 2026-05-11T02:55:31+00:00

My compiler (VC++ 6.0 sp6) has apparently gone insane. In certain pieces of code

  • 0

My compiler (VC++ 6.0 sp6) has apparently gone insane. In certain pieces of code I’m seeing that ‘bool mybool = true;‘ evalutes to and assigns false, and vice versa for true. Changing the true/false keywords to 1/0 makes it work fine. The same code compiles elsewhere fine without changing the true/false keywords.

What could possibly cause this? My first thought was RAM or disk corruption, but that all checked out fine. I’m not far from reformatting my drive and reinstalling everything, but I’m terrified I’d still see the same misbehavior.

Is it even technically possible for a macro or linked-in library somewhere to screw up the meaning of ‘true‘ and ‘false‘?

UPDATE: Mystery solved. An environment variable flag on my machine was set to ‘false’ and the way this was interpolated by some preprocessor code redefined the keyword.

  • 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. 2026-05-11T02:55:32+00:00Added an answer on May 11, 2026 at 2:55 am

    A preprocessor macro could certainly do it, although that would be pretty surprising. One way to check if that is the case would be

    #ifdef true #  error 'true is defined as a macro' #endif #ifdef false #  error 'false is defined as a macro' #endif 

    Response to comments:

    Find a non-header file where you see this behavior, preferably one with few #includes.

    In the middle of the list of includes, put the #ifdef #error directives.

    if the error trips you know it’s in the first half of includes, if it doesn’t it’s in the second half. Split the half in half and repeat. When you narrow it down to one header, open that header. If that header includes any headers repeat the process for the list of headers it includes. Eventually you should be able to find the #defines . Tedious, I agree.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 62k
  • Answers 62k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Sometimes you can set a system-wide (or even just personal)… May 11, 2026 at 10:06 am
  • added an answer I form layout is degraded because of conflicting APIs. Because… May 11, 2026 at 10:06 am
  • added an answer The standard does not require the use of a stack,… May 11, 2026 at 10:06 am

Related Questions

My compiler (VC++ 6.0 sp6) has apparently gone insane. In certain pieces of code
My compiler behaves oddly when I try to pass a fixed-size array to a
I'm having a problem with my compiler telling me there is an 'undefined reference
I'm a Java programmer, and I like my compiler, static analysis tools and unit
I'm fine working on Linux using gcc as my C compiler but would like
In my independent study of various compiler books and web sites, I am learning
My day job includes working to develop a Pascal-like compiler. I've been working all
I talked my team into turning on compiler warnings again. Some how all warnings
I realize that far is compiler specific, but my expectation is that the placement
I am running the C# compiler in code, sort of my own IDE. I

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.