M
Michael
Hi All,
I have three very simple files as below.
When I try and compile these with g++ -ansi -Wall -pedantic -o crap Base.h
Other.h
I get an error:
Base.h:7: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Other.h:7: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make: *** [all] Error 1
Can anyone tell me why? If I remove the #include <iostream> it compiles
without error.
Thanks for your help
Michael
-----------first file--Base.h--------
#ifndef _Base_
#define _Base_
#include <iostream>
class Base {
};
#endif
-------------second file--Other.h-------
#endif
#ifndef _Other_
#define _Other_
#include "Base.h"
class Other {
};
#endif
-------------Third file---crap.cpp-------
int main(){
}
I have three very simple files as below.
When I try and compile these with g++ -ansi -Wall -pedantic -o crap Base.h
Other.h
I get an error:
Base.h:7: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Other.h:7: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make: *** [all] Error 1
Can anyone tell me why? If I remove the #include <iostream> it compiles
without error.
Thanks for your help
Michael
-----------first file--Base.h--------
#ifndef _Base_
#define _Base_
#include <iostream>
class Base {
};
#endif
-------------second file--Other.h-------
#endif
#ifndef _Other_
#define _Other_
#include "Base.h"
class Other {
};
#endif
-------------Third file---crap.cpp-------
int main(){
}