problem in stream..

Anton Crombach a.b.m.crombach at
Tue May 28 03:25:51 EDT 2002

You may want to include the iostream header file:

#include <iostream>

----- Original Message -----
From: "박 해성" <caocao0508 at>
To: <galib at>
Sent: Tuesday, May 28, 2002 8:09 AM
Subject: problem in stream..

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);
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À» ¸¸³ª º¸¼¼¿ä.

galib mailing list
galib at

More information about the galib mailing list