CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

IcoLagrangianFoam_problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 20, 2008, 03:12
Default Dear all, After I download t
  #1
Senior Member
 
ZHOU Bin
Join Date: Mar 2009
Location: Nanjing/Torino, Nanjing/Piemente, China/Italy
Posts: 164
Rep Power: 17
zhoubinwx is on a distinguished road
Send a message via ICQ to zhoubinwx Send a message via MSN to zhoubinwx Send a message via Skype™ to zhoubinwx
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
zhoubinwx is offline   Reply With Quote

Old   May 20, 2008, 16:34
Default Hi! If you use c++filt to t
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
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
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   May 21, 2008, 04:55
Default Hello Bernhard, After I have
  #3
Senior Member
 
ZHOU Bin
Join Date: Mar 2009
Location: Nanjing/Torino, Nanjing/Piemente, China/Italy
Posts: 164
Rep Power: 17
zhoubinwx is on a distinguished road
Send a message via ICQ to zhoubinwx Send a message via MSN to zhoubinwx Send a message via Skype™ to zhoubinwx
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
zhoubinwx is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:22.