Results 1 to 5 of 5

Thread: Bypassing "bool.h" debugging error

  1. #1

    Thread Starter
    Banned
    Join Date
    Jun 2002
    Posts
    40

    Bypassing "bool.h" debugging error

    Normally, I would use Borland's C++ Compiler, because it is the best. But I am stuck with using Visual C++. Anywho .....

    THE PROBLEM

    I get an error whilst debugging my code.
    It tells me there are errors in the include file "bool.h"
    I do not include this in my driver file, BUT.....
    I include the file apstring.h created by Leon Shram which
    calls on "bool.h" (he made both)
    But that's kinda funny cause, I've used these before and they work very well.
    But since VC sucks hard, it says there are errors in "bool.h"

    IS THERE A WAY TO HAVE IT IGNORE THESE LAME ERRORS?

    Help is appreciated, thanks guys.

  2. #2
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    Which version of VC++ do you have? If it's a newer version, you can probably just take out the #include "bool.h" line and be fine, since that file is for use with older compilers that don't understand the bool variable type.
    Alcohol & calculus don't mix.
    Never drink & derive.

  3. #3

    Thread Starter
    Banned
    Join Date
    Jun 2002
    Posts
    40
    It's version 6.0, I would take out the include header BUT, I'm not using it in my driver .cpp file. But I do include apstring.h which itself uses bool.h, and that is where it gets to the error.

  4. #4
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    Yeah...just comment it out in apstring.h.
    Alcohol & calculus don't mix.
    Never drink & derive.

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Don't use apstring.h, use <string>. It doesn't require any mysterious other header files and is part of the C++ standard library.
    An error in bool.h usually means that you have an error just before the include statements, which is discovered by the compiler when it gets to the next line, which is in bool.h.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width