[galib] galib Digest, Vol 131, Issue 1
Simon Martin
saimen54 at hotmail.com
Sat Aug 17 07:36:58 EDT 2019
Hello,
please keep in mind galib hasn't been updated for over 10 years, so it's pretty likely that modern compilers will not accept parts of the code.
However I have made galib working with CMake and recent versions of GCC and MSVC.
I can send you the changes I've made, but you probably need to make more adjustments yourself. But I'm on vacation until September, 1st, so I could send you some info after that (I don't have my computer with me right now).
As my spare project I'm currently working on a modernization of galib, but it's nowhere near production ready and I need to ask the author of galib first, if a publication of this modernization is in line with galib's license.
Hope that helps a little bit.
Simon
________________________________
Von: galib-bounces at mit.edu <galib-bounces at mit.edu> im Auftrag von Renan Dantas de Freitas <renan.engenharia at hotmail.com>
Gesendet: Mittwoch, 14. August 2019, 20:05
An: galib at mit.edu
Betreff: [galib] galib Digest, Vol 131, Issue 1
I'm sorry...I've been so frustared about it then I forgot the details.
First I got the Borland Compiler, to use the same as the instructions
I tried the following instruction from the installation doc:
"If you are using the Borland compiler, use make to do the build like this: make -f makefile.bcc"
Then in the cmd:
Microsoft Windows [versão 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Todos os direitos reservados.
C:\Users\renan.freitas>cd c:\galib247
c:\galib247>make -f makefile.bcc
MAKE Version 5.41 Copyright (c) 1987, 2014 Embarcadero Technologies, Inc.
cd ga
make -f makefile.bcc
MAKE Version 5.41 Copyright (c) 1987, 2014 Embarcadero Technologies, Inc.
bcc32x.exe -q -P -RT -Ic:\Borland\BCC102\Include -w-var -w-inl -I.. -oga
error.o -c gaerror.C
bcc32x.exe: warning: argument unused during compilation: '-RT'
bcc32x.exe: warning: argument unused during compilation: '-w-var'
bcc32x.exe: warning: argument unused during compilation: '-w-inl'
gaerror.C:
gaerror.C:21:39: error: use of undeclared identifier 'cerr'
static STD_OSTREAM *__gaErrStream = & STD_CERR;
^
..\ga/std_stream.h:50:25: note: expanded from macro 'STD_CERR'
#define STD_CERR cerr
^
gaerror.C:25:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"error reading from file: ",
^
gaerror.C:26:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"error writing to file: ",
^
gaerror.C:27:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"unexpected EOF encountered during read.",
^
gaerror.C:28:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"bad probability value. Must be between 0.0 and 1.0, inclusive.",
^
gaerror.C:29:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"objects are different types.",
^
gaerror.C:30:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"this method has not been defined.",
^
gaerror.C:31:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"core deleted with references remaining.",
^
gaerror.C:33:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"the custom replacement strategy requires a replacement function",
^
gaerror.C:34:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"unknown replacement strategy",
^
gaerror.C:35:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"number of children must be greater than 0",
^
gaerror.C:36:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"replacement percentage must be between 0.0 and 1.0, inclusive",
^
gaerror.C:37:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"number of indiv for replacement must be less than pop size",
^
gaerror.C:38:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"index of individual is out-of-bounds",
^
gaerror.C:39:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"population contains no individuals from which to clone new individuals",
^
gaerror.C:40:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"there must be at least one individual in each population",
^
gaerror.C:41:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"no sexual crossover has been defined. no mating can occur.",
^
gaerror.C:42:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"no asexual crossover has been defined. no mating can occur.",
^
gaerror.C:44:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"children must have same resize behaviour for any given dimension",
^
gaerror.C:45:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"parents and children must have the same dimensions",
^
gaerror.C:46:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"parents must be the same length",
^
gaerror.C:47:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"upper limit must be greater than lower limit.",
^
gaerror.C:48:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"bad phenotype - ID is out of bounds.",
^
gaerror.C:49:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"bad phenotype - value is less than min or greater than max.",
^
gaerror.C:50:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"dimensions of bounds set do not match dimensions of the genome",
^
gaerror.C:52:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"linear scaling multiplier must be greater than 1.0",
^
gaerror.C:53:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"sigma truncation multiplier must be greater than 0.0",
^
gaerror.C:54:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"negative objective function score!\n\
^
gaerror.C:56:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"negative objective function score!\n\
^
gaerror.C:58:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"the cutoff for triangular sharing must be greater than 0.0",
^
gaerror.C:60:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"cannot index an allele in a bounded, non-discretized set of alleles",
^
gaerror.C:61:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"length of binary string exceeds maximum for this computer/OS type.",
^
gaerror.C:62:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"specified value cannot be exactly represented with these bits.",
^
gaerror.C:63:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"bad 'where' indicator",
^
gaerror.C:64:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"bogus type, data may be corrupt",
^
gaerror.C:65:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"bad links in tree. operation aborted.",
^
gaerror.C:66:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"cannot swap a node with its ancestor",
^
gaerror.C:67:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"cannot insert this object into itself",
^
gaerror.C:68:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"node relative to which insertion is made must be non-NULL.",
^
gaerror.C:69:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"root node must have no siblings. insertion aborted.",
^
gaerror.C:70:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"cannot insert before a root node (only below).",
^
gaerror.C:71:3: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
"cannot insert after a root node (only below)."
^
41 warnings and 1 error generated.
** error 1 ** deleting gaerror.o
** error 1 ** deleting lib
c:\galib247>
Renan Dantas de Freitas
Engenheiro Civil
(41) 8422 4161
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/galib/attachments/20190817/14f58d4e/attachment-0001.html
More information about the galib
mailing list