(no subject)

Mesimer, Daniel James (UMKC-Student) djm0fc at umkc.edu
Tue Oct 8 10:28:22 EDT 2002


Have you tried compiling using the g++ compiler as you are attempting to compile C++ code and not C code?

Dan "Pierce" Mesimer


-----Original Message-----
From:	tevfikgozum [mailto:tevfikgozum at hotmail.com]
Sent:	Sat 10/5/2002 3:02 PM
To:	galib at mit.edu
Cc:	
Subject:	(no subject)
Hi,
I am getting the following errors when I compile ex1.C using gcc in Sun
machine with unix. In the make file I am using non-gnu option otherwise
nothing works. Thanks for you help.
 
Tevfik Gozum
 
garlic tgozum> gcc ex1.C
/var/tmp/ccZjZtqR.o: In function `main':
/var/tmp/ccZjZtqR.o(.text+0xc): undefined reference to `cout'
/var/tmp/ccZjZtqR.o(.text+0x10): undefined reference to `cout'
/var/tmp/ccZjZtqR.o(.text+0x1c): undefined reference to
`ostream::operator<<(cha
r const *)'
/var/tmp/ccZjZtqR.o(.text+0x24): undefined reference to `cout'
/var/tmp/ccZjZtqR.o(.text+0x28): undefined reference to `cout'
/var/tmp/ccZjZtqR.o(.text+0x34): undefined reference to
`ostream::operator<<(cha
r const *)'
/var/tmp/ccZjZtqR.o(.text+0x3c): undefined reference to `cout'
/var/tmp/ccZjZtqR.o(.text+0x40): undefined reference to `cout'
/var/tmp/ccZjZtqR.o(.text+0x4c): undefined reference to
`ostream::operator<<(cha
r const *)'
/var/tmp/ccZjZtqR.o(.text+0x54): undefined reference to `cout'
/var/tmp/ccZjZtqR.o(.text+0x58): undefined reference to `cout'
/var/tmp/ccZjZtqR.o(.text+0x5c): undefined reference to
`ostream::flush(void)'
/var/tmp/ccZjZtqR.o(.text+0xf4): undefined reference to
`GARandomSeed(unsigned i
nt)'
/var/tmp/ccZjZtqR.o(.text+0x16c): undefined reference to
`GA2DBinaryStringGenome
::GA2DBinaryStringGenome(unsigned int, unsigned int, float (*)(GAGenome
&), void
 *)'
/var/tmp/ccZjZtqR.o(.text+0x184): undefined reference to
`GASimpleGA::GASimpleGA
(GAGenome const &)'
/var/tmp/ccZjZtqR.o(.text+0x198): undefined reference to
`GASimpleGA::population
Size(unsigned int)'
/var/tmp/ccZjZtqR.o(.text+0x1ac): undefined reference to
`GAGeneticAlgorithm::nG
enerations(unsigned int)'
/var/tmp/ccZjZtqR.o(.text+0x1c0): undefined reference to
`GAGeneticAlgorithm::pM
utation(float)'
/var/tmp/ccZjZtqR.o(.text+0x1d4): undefined reference to
`GAGeneticAlgorithm::pC
rossover(float)'
/var/tmp/ccZjZtqR.o(.text+0x1e8): undefined reference to
`GAGeneticAlgorithm::ev
olve(unsigned int)'
/var/tmp/ccZjZtqR.o(.text+0x1f0): undefined reference to `cout'
/var/tmp/ccZjZtqR.o(.text+0x1f4): undefined reference to `cout'
/var/tmp/ccZjZtqR.o(.text+0x200): undefined reference to
`ostream::operator<<(ch
ar const *)'
/var/tmp/ccZjZtqR.o(.text+0x214): undefined reference to
`GAGeneticAlgorithm::st
atistics(void) const'
/var/tmp/ccZjZtqR.o(.text+0x228): undefined reference to
`GAStatistics::bestIndi
vidual(unsigned int) const'
/var/tmp/ccZjZtqR.o(.text+0x250): undefined reference to
`ostream::operator<<(ch
ar const *)'
/var/tmp/ccZjZtqR.o(.text+0x264): undefined reference to
`GASimpleGA::~GASimpleG
A(void)'
/var/tmp/ccZjZtqR.o(.text+0x278): undefined reference to
`GA2DBinaryStringGenome
::~GA2DBinaryStringGenome(void)'
/var/tmp/ccZjZtqR.o(.text+0x2cc): undefined reference to
`GASimpleGA::~GASimpleG
A(void)'
/var/tmp/ccZjZtqR.o(.text+0x2e8): undefined reference to
`GA2DBinaryStringGenome
::~GA2DBinaryStringGenome(void)'
/var/tmp/ccZjZtqR.o: In function `Objective(GAGenome &)':
/var/tmp/ccZjZtqR.o(.text+0x358): undefined reference to
`GA2DBinaryStringGenome
::width(void) const'
/var/tmp/ccZjZtqR.o(.text+0x380): undefined reference to
`GA2DBinaryStringGenome
::height(void) const'
/var/tmp/ccZjZtqR.o(.text+0x3ac): undefined reference to
`GA2DBinaryStringGenome
::gene(unsigned int, unsigned int) const'
/var/tmp/ccZjZtqR.o(.text+0x408): undefined reference to
`GA2DBinaryStringGenome
::gene(unsigned int, unsigned int) const'
collect2: ld returned 1 exit status






More information about the galib mailing list