problem in stream..

Edmanuel Eduardo Torres Amaris edmanuel.torres at ecopetrol.com.co
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) && \
    !defined(NO_STREAMS)
#define USE_OLD_STREAMS
//USE_ANSI_STREAMS
#endif

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

>Regards,
>_________________________________________
>Edmanuel E. Torres Amaris
edmanuel.torres at ecopetrol.com.co
eetorres at lycos.com
>Tel 6356765 - of. 6740406
OSTG> - Optics and Signals Treatment Group
>Universidad Industrial de Santander
>UIS - www.uis.edu.co <http://www.uis.edu.co> 
>Oilfield - ICP - ECOPETROL
www.ecopetrol.com.com
>Bucaramanga
Colombia

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

	_______________________________________________
	galib mailing list
	galib at mit.edu
	http://lancet.mit.edu/mailman/listinfo/galib



More information about the galib mailing list