Hola Estoy tratando de ompilar ADFC en FreeBSD 5.3 y me encontre
los siguientes errores:
giffuni# gcc --version
gcc (GCC) 3.4.2 [FreeBSD] 20040728
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There
is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
giffuni# gmake
g++ -MM -O3 -DNDEBUG -march=i486 backup.cpp
caracteristicas_2d.cpp caracteristic
as_3d.cpp cargar_problema_navierstokes.cpp divergencia_2d.cpp
divergencia_3d.cpp
draglift.cpp gmres.cpp gradiente_conjugado.cpp
inicializa_navierstokes.cpp inte
rprete.cpp k-epsilon.cpp main.cpp masas_rigidez_2d_cuadraticas.
cpp masas_rigidez
_2d_lineales.cpp masas_rigidez_3d_cuadraticas.cpp
masas_rigidez_3d_lineales.cpp
nvi.cpp observador.cpp operaciones_mallado.cpp particles.cpp
perfil_entrada.cpp
resolver_navierstokes.cpp slip.cpp smagorinsky.cpp sparse_matrix.
cpp tipos.cpp t
okenizer.cpp txt2cpp.cpp txt2cpp_adfc_bas.cpp txt2cpp_adfc_cnd.
cpp txt2cpp_adfc_
prb.cpp txt2cpp_adfc_unix.cpp txt2cpp_adfc_win.cpp 1>.depend
g++ -O3 -DNDEBUG -march=i486 -c backup.cpp
In file included from adfc.h:54,
from backup.cpp:11:
array.h: In member function `void Array<tipo>::truncate(unsigned int)
':
array.h:467: error: `cerr' undeclared (first use this function)
array.h:467: error: (Each undeclared identifier is reported only once
for each f
unction it appears in.)
array.h:469: error: `endl' undeclared (first use this function)
In file included from backup.cpp:11:
adfc.h: At global scope:
adfc.h:348: error: `void ConjugatedGradient::
multiplyByMInverse(Array<double>&,
Array<double>&)' is private
adfc.h:758: error: within this context
adfc.h:350: error: `void ConjugatedGradient::preconditionate()' is
private
adfc.h:759: error: within this context
backup.cpp: In member function `void NavierStokesSolver::
saveBackup(int)':
backup.cpp:51: error: `endl' undeclared (first use this function)
backup.cpp:57: error: `cerr' undeclared (first use this function)
backup.cpp: In member function `int NavierStokesSolver::
loadBackup()':
backup.cpp:151: error: `endl' undeclared (first use this function)
backup.cpp:157: error: `cerr' undeclared (first use this function)
gmake: *** [backup.o] Error 1
____________________________________
cordial saludo,
Pedro F. Giffuni
Logged In: YES
user_id=1164435
ADFC can't compile with GCC-3.4.X.
I don't know why ....