[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: More On Bug Report
From: |
Hans Aberg |
Subject: |
Re: More On Bug Report |
Date: |
Thu, 3 Jan 2002 00:25:17 +0100 |
At 13:46 -0800 2002/01/02, Jim Leary wrote:
[I think the best thing is to keep the subject, and make it descriptive.]
>If I try either of the following two versions of a do-nothing
>program, I get the same compiler error.
>
>#include "gmpxx.h"
>
>int main(void) {
> return 0;
>}
>
>
>or
>
>#include "gmpxx.h"
>using namespace std;
>
>int main(void) {
> return 0;
>}
>
>The g++ compiler can not even get through the gmpxx.h
>file without quitting after it finds the undeclared variable.
The problem is then probably in the gmpxx.h file. Have you tried
combinations like:
#include <iostream>
using namespace std;
#include "gmpxx.h"
int main(void) {
...
}
That is, try to put in a using std::cout before "gmpxx.h" is using cout.
Or try to tweak "gmpxx.h", replacing cout with std::cout.
Hans Aberg