[galib] Help using GALib: compiling the library

#SAWHNEY ADITI# aditi at pmail.ntu.edu.sg
Wed Jul 20 03:01:35 EDT 2005


Hey,
 
I have used galib once prior and then i had run the makefile and included all the ".o" files of galib in my C++ project and run my program and itw orked. 
i havenow written another small GA but when i compile it i get the following errors :
===================
ompiling...
main.C
w:\latest\gaextra\galib246\ga\gaid.h(29) : error C2061: syntax error : identifier 'GAID'
w:\latest\gaextra\galib246\ga\gaid.h(29) : error C2059: syntax error : ';'
w:\latest\gaextra\galib246\ga\gaid.h(29) : error C2449: found '{' at file scope (missing function header?)
w:\latest\gaextra\galib246\ga\gaid.h(56) : error C2059: syntax error : '}'
c:\program files\microsoft visual studio\vc98\include\eh.h(32) : fatal error C1189: #error :  "eh.h is only for C++!"
Error executing cl.exe.
main.obj - 5 error(s), 0 warning(s)
==============================
can anyone help me iwth this?
 
yours sincerely,
aditi


________________________________

From: galib-bounces at mit.edu on behalf of #SAWHNEY ADITI#
Sent: Mon 7/18/2005 3:34 PM
To: galib at mit.edu
Subject: [galib] Help using GALib: customising mutation operator



hey,

I'm new to galib and c++ so have a basic question to ask.
I am using real genomes and want to write my own mutation operator called "swap". so where do i place the code for this mutation operator n how do i set the genome class to use it?

sincerely,
Aditi

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





More information about the galib mailing list