problem in stream..

박 해성 caocao0508 at hotmail.com
Tue May 28 02:09:33 EDT 2002


Hi..My test code is following...

#include <ga/GASimpleGA.h>
#include <ga/GA1DBinStrGenome.h>

float Objective(GAGenome&);

void main(void)
{
	GA1DBinaryStringGenome genome(10,Objective);
	GASimpleGA ga(genome);
	ga.evolve();
	cout << ga.statistics() << endl;

}
float Objective(GAGenome&){
	return 0.;
}

test.obj : error LNK2001: unresolved external symbol "public: int 
__thiscall GAStatistics::write(class std::basic_ostream<char,struct 
std::char_traits<char> > &)const " 
(?write at GAStatistics@@QBEHAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@@Z)

Debug/test.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

I use MS VC++ 6.0. Of course I built the galib library successfully.

And added TP tag, and galib in library module.

Why??? Plz Help me...Thanks in advance

_________________________________________________________________
전세계인이 함께하는 무료 웹 메일 서비스인 MSN Hotmail을 만나 보세요. 
http://www.hotmail.com/KO




More information about the galib mailing list