[galib] Link error using gaLib and list
Ulises Estrada
ulises.estrada at gmail.com
Wed Mar 2 20:34:47 EST 2005
Hi, I'm using the gaLib for a project, but I get a link error, I
search all my code, and find that I can't use lists.
the error I get is this:
In function `ZSt10_ConstructIiiEvPT_RKT0_':
[Linker error] undefined reference to `int
operator!=<std::_List_iterator<int, int&, int*>
>(std::_List_iterator<int, int&, int*> const&,
std::_List_iterator<int, int&, int*> const&)'
[Build Error] [MessyAlleles.exe] Error 1
I made this simple code, and get the same error.
#include <list>
#include <vector>
#include <iostream>
#include <ga/ga.h> //-----> If I comment
this two, the program
#include <ga/GA1DArrayGenome.h> // run perfectly !
using namespace std;
int main(){
list<int> lista;
list<int>::iterator iterador;
for(int i=0; i<100; i++){
lista.push_back(i);
}
iterador = lista.begin();
while(iterador != lista.end()){
iterador++;
}
return 0;
}
I'm using WindowsXP, with DevC++ 4.9.9.1,
I hope someone can help me.
Thanks
Ulises
More information about the galib
mailing list