internal error compiler 42

Sharar, Eran Eran_Sharar@icomverse.com
Wed Aug 15 23:21:00 GMT 2001


Title: New Page 1



 
Hi
 
Trying to compile 
with LEDA library, we get a strange error:
We use stl 
vector.
LEDA has definition 
of its own vector.
Here is a sample 
file for demonstrating the error:
---------------------------------------------------------------------
#include<vector>
#include<LEDA/graph.h>
int 
main()
{
    
std::vector<int> v;    //std:: is for making a deference 
between LEDA vector & stl vector
    return 
0;
}
--------------------------------------------------------------------
When compiling with the following 
line:
g++ 
-I/home/silly6/mol/lib/LEDA/incl -Wall -g -c 
file.cc
 
We get the following 
error:
Internal compiler error 
42
 
 
If we use the following version of the 
file:

---------------------------------------------------------------------
#include<vector>
using namespace 
std;
#include<LEDA/graph.h>
 
int main()
{
    vector<int> 
v;
    return 
0;
}
--------------------------------------------------------------------
 
We get the following error (looks like the compiler 
sees redefinition):
non-template type `leda_vector` used as 
template
 
 
Is there another 
thing we should do in order to use LEDA & stl together with no 
conflict?
 
Thanks
Eran 
Sharar
Tel: 0 3-765- 5971
mailto:eran_sharar @icomverse.com
 




More information about the Gcc-bugs mailing list