CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   IcoLagrangianFoam_problem (https://www.cfd-online.com/Forums/openfoam-bugs/62475-icolagrangianfoam_problem.html)

zhoubinwx May 20, 2008 03:12

Dear all, After I download t
 
Dear all,
After I download the solver icoLagrangianFoam by Gschaider from wiki, I compiled and solved some problem. However, when the case "cavityLagrange" is downloaded and run on my pc, I get the following error:
/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.4.1 |
| \ / A nd | Web: http://www.openfoam.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/

Exec : FoamXCaseServer /home/zhou/OpenFOAM/zhou-1.4.1/run/zhoubin cavityLagrange -open
Date : May 19 2008
Time : 19:00:57
Host : wsfoam
PID : 9783
Root : /home/zhou/OpenFOAM/zhou-1.4.1/run/zhoubin
Case : cavityLagrange
Nprocs : 1
CaseServer running.....
icoFoam: symbol lookup error: /home/zhou/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libtriSurface.so: undefined symbol: _ZN11yyFlexLexer6yywrapEv

Does anybody know how to solve it?

Thank you.

Bin

gschaider May 20, 2008 16:34

Hi! If you use c++filt to t
 
Hi!

If you use c++filt to translate the missing symbol from the-name to the C++-name it says: yyFlexLexer::yywrap(). Searching for that reveals: http://www.cfd-online.com/OpenFOAM_D...es/1/7503.html

Bernhard

zhoubinwx May 21, 2008 04:55

Hello Bernhard, After I have
 
Hello Bernhard,
After I have implemented what the link tells, I get the same error, and when I wmake the solver, I get the following error:
SOURCE=gambitToFoam.L ; flex++ -f $SOURCE ; mv lex.yy.cc Make/linuxGccDPOpt/gambitToFoam.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/home/zhou/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -pthread -c Make/linuxGccDPOpt/gambitToFoam.C -o Make/linuxGccDPOpt/gambitToFoam.o
gambitToFoam.L:81: error: stray '##' in program
gambitToFoam.L:82: error: stray '##' in program
gambitToFoam.L:81: error: 'zhoubin' does not name a type
lex.yy.cc: In member function 'virtual int yyFlexLexer::yylex()':
lex.yy.cc:14041: warning: use of old-style cast
lex.yy.cc:14041: warning: use of old-style cast
lex.yy.cc:14057: warning: use of old-style cast
lex.yy.cc:14617: warning: use of old-style cast
lex.yy.cc: In member function 'int yyFlexLexer::yy_get_next_buffer()':
lex.yy.cc:14872: warning: use of old-style cast
lex.yy.cc:14895: warning: use of old-style cast
lex.yy.cc:14908: warning: use of old-style cast
lex.yy.cc:14908: warning: use of old-style cast
lex.yy.cc:14929: warning: use of old-style cast
lex.yy.cc:14929: warning: use of old-style cast
lex.yy.cc:14954: warning: use of old-style cast
lex.yy.cc:14957: warning: use of old-style cast
lex.yy.cc:14957: warning: use of old-style cast
lex.yy.cc: In member function 'yy_state_type yyFlexLexer::yy_get_previous_state()':
lex.yy.cc:14985: warning: use of old-style cast
lex.yy.cc:14985: warning: use of old-style cast
lex.yy.cc: In member function 'void yyFlexLexer::yyunput(int, char*)':
lex.yy.cc:15045: warning: use of old-style cast
lex.yy.cc:15046: warning: use of old-style cast
lex.yy.cc:15054: warning: use of old-style cast
lex.yy.cc: In member function 'int yyFlexLexer::yyinput()':
lex.yy.cc:15121: warning: use of old-style cast
lex.yy.cc: In member function 'virtual yy_buffer_state* yyFlexLexer::yy_create_buffer(std::istream*, int)':
lex.yy.cc:15201: warning: use of old-style cast
lex.yy.cc:15210: warning: use of old-style cast
lex.yy.cc: In member function 'virtual void yyFlexLexer::yy_delete_buffer(yy_buffer_state*)':
lex.yy.cc:15232: warning: use of old-style cast
lex.yy.cc:15235: warning: use of old-style cast
lex.yy.cc:15237: warning: use of old-style cast
lex.yy.cc: In member function 'void yyFlexLexer::yyensure_buffer_stack()':
lex.yy.cc:15364: warning: use of old-style cast
lex.yy.cc:15384: warning: use of old-style cast
lex.yy.cc: In member function 'void yyFlexLexer::yy_push_state(int)':
lex.yy.cc:15404: warning: use of old-style cast
lex.yy.cc:15407: warning: use of old-style cast
lex.yy.cc:15407: warning: use of old-style cast
lex.yy.cc: In function 'void* yyalloc(yy_size_t)':
lex.yy.cc:15486: warning: use of old-style cast
lex.yy.cc: In function 'void* yyrealloc(void*, yy_size_t)':
lex.yy.cc:15498: warning: use of old-style cast
lex.yy.cc:15498: warning: use of old-style cast
lex.yy.cc: In function 'void yyfree(void*)':
lex.yy.cc:15503: warning: use of old-style cast
make[3]: *** [Make/linuxGccDPOpt/gambitToFoam.o] Error 1
make[3]: Leaving directory `/home/zhou/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/mesh/conversion/gambi tToFoam'
make[2]: *** [gambitToFoam] Error 2
make[2]: Leaving directory `/home/zhou/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/mesh/conversion'
make[1]: *** [conversion] Error 2

Bin


All times are GMT -4. The time now is 21:28.