CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Wmake libso (http://www.cfd-online.com/Forums/openfoam-installation/57489-wmake-libso.html)

roberthino October 1, 2007 10:42

hi i changed a file called Ten
 
hi i changed a file called TensorI.H in the primitives/Tensor directory now i want to compile it so that the nonlinear k-epsilon model is working right. for compiling i typed wmake libso in /OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM. as error i got:

/home/robert/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../ ../../../include/c++/4.2.1/cstdio:174: error: '::vsscanf' has not been declared
/home/robert/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../ ../../../include/c++/4.2.1/cstdio:181: error: '__gnu_cxx::snprintf' has not been declared
/home/robert/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../ ../../../include/c++/4.2.1/cstdio:182: error: '__gnu_cxx::vfscanf' has not been declared
/home/robert/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../ ../../../include/c++/4.2.1/cstdio:183: error: '__gnu_cxx::vscanf' has not been declared
/home/robert/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../ ../../../include/c++/4.2.1/cstdio:184: error: '__gnu_cxx::vsnprintf' has not been declared
/home/robert/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../ ../../../include/c++/4.2.1/cstdio:185: error: '__gnu_cxx::vsscanf' has not been declared

and at the end:

../../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:634: error: expected ',' or ';' before '{' token
In file included from /home/robert/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../ ../../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++io.h:43,
from /home/robert/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../ ../../../include/c++/4.2.1/iosfwd:46,
from /home/robert/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../ ../../../include/c++/4.2.1/bits/stl_algobase.h:70,
from /home/robert/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../ ../../../include/c++/4.2.1/bits/char_traits.h:46,
from /home/robert/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../ ../../../include/c++/4.2.1/string:47,
from lnInclude/string.H:47,
from lnInclude/messageStream.H:46,
from lnInclude/error.H:48,
from OSspecific/Unix/signals/sigFpe.C:30:
/home/robert/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../ ../../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr.h:122: error: expected declaration before end of line
make: *** [Make/linuxGccDPOpt/sigFpe.o] Error 1

maybe someone can fix that problem. i am working on an ubuntu system and using opfoam 1.4.1. i already installed binutils-dev for ubuntu.

gschaider October 1, 2007 12:00

Have you installed a regular (
 
Have you installed a regular (non-OpenFOAM g++)? In my experience, although it won't be used, this makes problems like this go away.

The other guess (I remember that vaguely) is that the OF-g++ at least needs the glibc-devel. Maybe installing that helps. (But that is the kind of stuff that gets installed when you install a regular g++, see above)


All times are GMT -4. The time now is 20:46.