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