problem in stream..

Edmanuel Eduardo Torres Amaris edmanuel.torres at
Tue May 28 11:49:30 EDT 2002

I think that you need first recompile the ga.lib, with the followings
changes into gaconfig.h

// By default, we use the old streams library.  
#if !defined(USE_OLD_STREAMS) && \
    !defined(USE_ANSI_STREAMS) && \

Then you will be enable for compile your example in msv6, I was do it and I
don't needed anything

>Edmanuel E. Torres Amaris
edmanuel.torres at
eetorres at
>Tel 6356765 - of. 6740406
OSTG> - Optics and Signals Treatment Group
>Universidad Industrial de Santander
>UIS - <> 
>Oilfield - ICP - ECOPETROL

	-----Original Message-----
	From:	caocao0508 at [mailto:caocao0508 at]
	Sent:	Tuesday, May 28, 2002 1:10 AM
	To:	galib at
	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