|
-
Jun 18th, 2002, 12:23 AM
#1
Thread Starter
Banned
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.
-
Jun 18th, 2002, 05:23 PM
#2
Fanatic Member
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.
-
Jun 18th, 2002, 06:30 PM
#3
Thread Starter
Banned
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.
-
Jun 18th, 2002, 08:13 PM
#4
Fanatic Member
Yeah...just comment it out in apstring.h.
Alcohol & calculus don't mix.
Never drink & derive.
-
Jul 2nd, 2002, 04:32 AM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|