This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

internal error compiler 42


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:03-765-5971

mailto:eran_sharar@icomverse.com

 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]