Errors compiling tha example files of the galib/examples directory
Petrakos Kiriakos
petrakos at ceid.upatras.gr
Wed May 23 04:01:22 EDT 2001
Hello,
I have succesfully installed Galib245, using MS Visual ++ 6, creating
the appropriate .lib file, named galib.lib. Trying to compile any of the
example files (eg ex1.c or ex2.c) I always receive the same error messages
during the compilation which look like the ones that follow. Does anyone
know what goes wrong? Thank you
*************************************************************************************
errors
*************************************************************************************
Compiling...
ex2.C
c:\program files\microsoft visual
studio\vc98\include\ga\gaid.h(29) : error C2061: syntax error : identifier
'GAID'
c:\program files\microsoft visual
studio\vc98\include\ga\gaid.h(29) : error C2059: syntax error : ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gaid.h(29) : error C2449: found '{' at file scope
(missing function header?)
c:\program files\microsoft visual
studio\vc98\include\ga\gaid.h(56) : error C2059: syntax error : '}'
c:\program files\microsoft visual
studio\vc98\include\ga\gaparameter.h(22) : error C2061: syntax error
: identifier 'GAParameter'
c:\program files\microsoft visual
studio\vc98\include\ga\gaparameter.h(22) : error C2059: syntax error : ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gaparameter.h(22) : error C2449: found '{' at file
scope (missing function header?)
c:\program files\microsoft visual
studio\vc98\include\ga\gaparameter.h(53) : error C2059: syntax error : '}'
c:\program files\microsoft visual
studio\vc98\include\ga\gaerror.h(18) : error C2061: syntax error
: identifier 'GASourceLocator'
c:\program files\microsoft visual
studio\vc98\include\ga\gaerror.h(18) : error C2059: syntax error : ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gaerror.h(18) : error C2449: found '{' at file
scope (missing function header?)
c:\program files\microsoft visual
studio\vc98\include\ga\gaerror.h(23) : error C2059: syntax error : '}'
c:\program files\microsoft visual
studio\vc98\include\ga\gaerror.h(102) : error C2146: syntax error
: missing ')' before identifier 'loc'
c:\program files\microsoft visual
studio\vc98\include\ga\gaerror.h(102) : error C2061: syntax error
: identifier 'loc'
c:\program files\microsoft visual
studio\vc98\include\ga\gaerror.h(102) : error C2059: syntax error : ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gaerror.h(102) : error C2059: syntax error : ','
c:\program files\microsoft visual
studio\vc98\include\ga\gaerror.h(104) : error C2059: syntax error : ')'
c:\program files\microsoft visual
studio\vc98\include\ga\gaerror.h(105) : error C2146: syntax error
: missing ')' before identifier 'loc'
c:\program files\microsoft visual
studio\vc98\include\ga\gaerror.h(105) : error C2061: syntax error
: identifier 'loc'
c:\program files\microsoft visual
studio\vc98\include\ga\gaerror.h(105) : error C2059: syntax error : ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gaerror.h(105) : error C2059: syntax error : ','
c:\program files\microsoft visual
studio\vc98\include\ga\gaerror.h(107) : error C2059: syntax error : ')'
c:\program files\microsoft visual
studio\vc98\include\ga\gaerror.h(108) : error C2146: syntax error
: missing ')' before identifier 'loc'
c:\program files\microsoft visual
studio\vc98\include\ga\gaerror.h(108) : error C2061: syntax error
: identifier 'loc'
c:\program files\microsoft visual
studio\vc98\include\ga\gaerror.h(108) : error C2059: syntax error : ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gaerror.h(108) : error C2059: syntax error : ','
c:\program files\microsoft visual
studio\vc98\include\ga\gaerror.h(110) : error C2059: syntax error : ')'
c:\program files\microsoft visual
studio\vc98\include\ga\gaerror.h(121) : error C2054: expected '(' to
follow 'inline'
c:\program files\microsoft visual
studio\vc98\include\ga\gaerror.h(121) : error C2085: 'GASetErrorStream'
: not in formal parameter list
c:\program files\microsoft visual
studio\vc98\include\ga\gaerror.h(121) : error C2143: syntax error
: missing ';' before '{'
c:\program files\microsoft visual
studio\vc98\include\ga\gaevaldata.h(16) : error C2061: syntax error
: identifier 'GAEvalData'
c:\program files\microsoft visual
studio\vc98\include\ga\gaevaldata.h(16) : error C2059: syntax error : ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gaevaldata.h(16) : error C2449: found '{' at file
scope (missing function header?)
c:\program files\microsoft visual
studio\vc98\include\ga\gaevaldata.h(25) : error C2059: syntax error : '}'
c:\program files\microsoft visual
studio\vc98\include\ga\gagenome.h(25) : error C2061: syntax error
: identifier 'GAGenome'
c:\program files\microsoft visual
studio\vc98\include\ga\gagenome.h(25) : error C2059: syntax error : ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gagenome.h(176) : error C2061: syntax error
: identifier 'GAGenome'
c:\program files\microsoft visual
studio\vc98\include\ga\gagenome.h(176) : error C2059: syntax error : ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gagenome.h(176) : error C2059: syntax error : ':'
c:\program files\microsoft visual
studio\vc98\include\ga\gagenome.h(284) : error C2054: expected '(' to
follow 'inline'
c:\program files\microsoft visual
studio\vc98\include\ga\gagenome.h(284) : error C2085: 'operator' : not in
formal parameter list
c:\program files\microsoft visual
studio\vc98\include\ga\gagenome.h(284) : error C2143: syntax error
: missing ';' before '=='
c:\program files\microsoft visual
studio\vc98\include\ga\gagenome.h(286) : error C2054: expected '(' to
follow 'inline'
c:\program files\microsoft visual
studio\vc98\include\ga\gagenome.h(286) : error C2085: 'operator' : not in
formal parameter list
c:\program files\microsoft visual
studio\vc98\include\ga\gagenome.h(286) : error C2143: syntax error
: missing ';' before '!='
c:\program files\microsoft visual
studio\vc98\include\ga\gaselector.h(42) : error C2061: syntax error
: identifier 'GAGenome'
c:\program files\microsoft visual
studio\vc98\include\ga\gaselector.h(42) : error C2059: syntax error : ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gaselector.h(43) : error C2061: syntax error
: identifier 'GAPopulation'
c:\program files\microsoft visual
studio\vc98\include\ga\gaselector.h(43) : error C2059: syntax error : ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gaselector.h(53) : error C2061: syntax error
: identifier 'GASelectionScheme'
c:\program files\microsoft visual
studio\vc98\include\ga\gaselector.h(53) : error C2059: syntax error : ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gaselector.h(53) : error C2059: syntax error : ':'
c:\program files\microsoft visual
studio\vc98\include\ga\gaselector.h(82) : error C2061: syntax error
: identifier 'GARankSelector'
c:\program files\microsoft visual
studio\vc98\include\ga\gaselector.h(82) : error C2059: syntax error : ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gaselector.h(82) : error C2059: syntax error : ':'
c:\program files\microsoft visual
studio\vc98\include\ga\gaselector.h(102) : error C2061: syntax error
: identifier 'GARouletteWheelSelector'
c:\program files\microsoft visual
studio\vc98\include\ga\gaselector.h(102) : error C2059: syntax error : ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gaselector.h(102) : error C2059: syntax error : ':'
c:\program files\microsoft visual
studio\vc98\include\ga\gaselector.h(141) : error C2061: syntax error
: identifier 'GATournamentSelector'
c:\program files\microsoft visual
studio\vc98\include\ga\gaselector.h(141) : error C2059: syntax error : ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gaselector.h(141) : error C2059: syntax error : ':'
c:\program files\microsoft visual
studio\vc98\include\ga\gaselector.h(165) : error C2061: syntax error
: identifier 'GAUniformSelector'
c:\program files\microsoft visual
studio\vc98\include\ga\gaselector.h(165) : error C2059: syntax error : ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gaselector.h(165) : error C2059: syntax error : ':'
c:\program files\microsoft visual
studio\vc98\include\ga\gaselector.h(184) : error C2061: syntax error
: identifier 'GASRSSelector'
c:\program files\microsoft visual
studio\vc98\include\ga\gaselector.h(184) : error C2059: syntax error : ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gaselector.h(184) : error C2059: syntax error : ':'
c:\program files\microsoft visual
studio\vc98\include\ga\gaselector.h(221) : error C2061: syntax error
: identifier 'GADSSelector'
c:\program files\microsoft visual
studio\vc98\include\ga\gaselector.h(221) : error C2059: syntax error : ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gaselector.h(221) : error C2059: syntax error : ':'
c:\program files\microsoft visual
studio\vc98\include\ga\gascaling.h(29) : error C2061: syntax error
: identifier 'GAPopulation'
c:\program files\microsoft visual
studio\vc98\include\ga\gascaling.h(29) : error C2059: syntax error : ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gascaling.h(46) : error C2061: syntax error
: identifier 'GAScalingScheme'
c:\program files\microsoft visual
studio\vc98\include\ga\gascaling.h(46) : error C2059: syntax error : ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gascaling.h(46) : error C2059: syntax error : ':'
c:\program files\microsoft visual
studio\vc98\include\ga\gascaling.h(63) : error C2061: syntax error
: identifier 'GANoScaling'
c:\program files\microsoft visual
studio\vc98\include\ga\gascaling.h(63) : error C2059: syntax error : ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gascaling.h(63) : error C2059: syntax error : ':'
c:\program files\microsoft visual
studio\vc98\include\ga\gascaling.h(82) : error C2061: syntax error
: identifier 'GALinearScaling'
c:\program files\microsoft visual
studio\vc98\include\ga\gascaling.h(82) : error C2059: syntax error : ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gascaling.h(82) : error C2059: syntax error : ':'
c:\program files\microsoft visual
studio\vc98\include\ga\gascaling.h(116) : error C2061: syntax error
: identifier 'GASigmaTruncationScaling'
c:\program files\microsoft visual
studio\vc98\include\ga\gascaling.h(116) : error C2059: syntax error : ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gascaling.h(116) : error C2059: syntax error : ':'
c:\program files\microsoft visual
studio\vc98\include\ga\gascaling.h(152) : error C2061: syntax error
: identifier 'GAPowerLawScaling'
c:\program files\microsoft visual
studio\vc98\include\ga\gascaling.h(152) : error C2059: syntax error : ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gascaling.h(152) : error C2059: syntax error : ':'
c:\program files\microsoft visual
studio\vc98\include\ga\gascaling.h(237) : error C2061: syntax error
: identifier 'GASharing'
c:\program files\microsoft visual
studio\vc98\include\ga\gascaling.h(237) : error C2059: syntax error : ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gascaling.h(237) : error C2059: syntax error : ':'
c:\program files\microsoft visual
studio\vc98\include\ga\gapopulation.h(66) : error C2061: syntax error
: identifier 'GAPopulation'
c:\program files\microsoft visual
studio\vc98\include\ga\gapopulation.h(66) : error C2059: syntax error
: ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gapopulation.h(66) : error C2059: syntax error
: ':'
c:\program files\microsoft visual
studio\vc98\include\ga\gastatistics.h(39) : error C2061: syntax error
: identifier 'GAStatistics'
c:\program files\microsoft visual
studio\vc98\include\ga\gastatistics.h(39) : error C2059: syntax error
: ';'
c:\program files\microsoft visual
studio\vc98\include\ga\gastatistics.h(39) : error C2449: found '{' at file
scope (missing function header?)
c:\program files\microsoft visual
studio\vc98\include\ga\gastatistics.h(156) : error C2059: syntax error
: '}'
c:\program files\microsoft visual
studio\vc98\include\ga\gastatistics.h(170) : error C2054: expected '(' to
follow 'inline'
c:\program files\microsoft visual
studio\vc98\include\ga\gastatistics.h(170) : error C2085: 'GAStatistics'
: not in formal parameter list
c:\program files\microsoft visual
studio\vc98\include\ga\gastatistics.h(170) : error C2143: syntax error
: missing ';' before ':'
c:\program files\microsoft visual
studio\vc98\include\ga\gastatistics.h(177) : error C2054: expected '(' to
follow 'inline'
c:\program files\microsoft visual
studio\vc98\include\ga\gastatistics.h(177) : fatal error C1003: error
count exceeds 100; stopping compilation
Error executing cl.exe.
ex2.obj - 102 error(s), 0 warning(s)
|=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|
| Petrakos Kyriakos |
| Computer Engineering and Informatics Dept. |
| University of Patras - Greece |
|=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|
|"What we cannot speak about we must pass over in silence"|
| L. Wittgenstein |
|=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|
More information about the galib
mailing list