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

Undefined reference to %60mainb

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   June 12, 2007, 13:12
Default Hi, I am compiling OpenFOAM
  #1
Member
 
Kuan Tek Seang
Join Date: Mar 2009
Posts: 31
Rep Power: 17
seang is on a distinguished road
Hi,

I am compiling OpenFOAM 1.4 with gcc 4.1.2 on OpenSUSE 10.1 and had the following strange error. Any help or hints is appreciated!

regards,
Tek Seang

SOURCE=gambitToFoam.L ; flex++ -f $SOURCE ; mv lex.yy.cc Make/linux64Gcc4DPOpt/gambitToFoam.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/home/tskuan/CFD/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude -fPIC -c Make/linux64Gcc4DPOpt/gambitToFoam.C -o Make/linux64Gcc4DPOpt/gambitToFoam.o
stdin:16159: m4: Warning: Excess arguments to built-in `m4_ifdef' ignored
lex.yy.cc: In member function âvirtual int yyFlexLexer::yylex()â:
lex.yy.cc:14023: warning: use of old-style cast
lex.yy.cc:14023: warning: use of old-style cast
lex.yy.cc:14039: warning: use of old-style cast
lex.yy.cc:14599: warning: use of old-style cast
lex.yy.cc: In member function âint yyFlexLexer::yy_get_next_buffer()â:
lex.yy.cc:14847: warning: use of old-style cast
lex.yy.cc:14870: warning: use of old-style cast
lex.yy.cc:14883: warning: use of old-style cast
lex.yy.cc:14883: warning: use of old-style cast
lex.yy.cc:14904: warning: use of old-style cast
lex.yy.cc: In member function âyy_state_type yyFlexLexer::yy_get_previous_state()â:
lex.yy.cc:14952: warning: use of old-style cast
lex.yy.cc:14952: warning: use of old-style cast
lex.yy.cc: In member function âvoid yyFlexLexer::yyunput(int, char*)â:
lex.yy.cc:15012: warning: use of old-style cast
lex.yy.cc:15013: warning: use of old-style cast
lex.yy.cc:15021: warning: use of old-style cast
lex.yy.cc: In member function âint yyFlexLexer::yyinput()â:
lex.yy.cc:15088: 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:15168: warning: use of old-style cast
lex.yy.cc:15177: warning: use of old-style cast
lex.yy.cc: In member function âvirtual void yyFlexLexer::yy_delete_buffer(yy_buffer_state*)â:
lex.yy.cc:15199: warning: use of old-style cast
lex.yy.cc:15202: warning: use of old-style cast
lex.yy.cc:15204: warning: use of old-style cast
lex.yy.cc: In member function âvoid yyFlexLexer::yyensure_buffer_stack()â:
lex.yy.cc:15331: warning: use of old-style cast
lex.yy.cc:15349: warning: use of old-style cast
lex.yy.cc: In member function âvoid yyFlexLexer::yy_push_state(int)â:
lex.yy.cc:15367: warning: use of old-style cast
lex.yy.cc:15370: warning: use of old-style cast
lex.yy.cc:15370: warning: use of old-style cast
lex.yy.cc: In function âvoid* yyalloc(yy_size_t)â:
lex.yy.cc:15450: warning: use of old-style cast
lex.yy.cc: In function âvoid* yyrealloc(void*, yy_size_t)â:
lex.yy.cc:15462: warning: use of old-style cast
lex.yy.cc:15462: warning: use of old-style cast
lex.yy.cc: In function âvoid yyfree(void*)â:
lex.yy.cc:15467: warning: use of old-style cast
g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/home/tskuan/CFD/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude -fPIC Make/linux64Gcc4DPOpt/gambitToFoam.o -L/home/tskuan/CFD/OpenFOAM/OpenFOAM-1.4/lib/linux64Gcc4DPOpt \
-lOpenFOAM -liberty -ldl -lm -o /home/tskuan/CFD/OpenFOAM/OpenFOAM-1.4/applications/bin/linux64Gcc4DPOpt/gambitT oFoam
/usr/lib/../lib64/crt1.o: In function `_start':
init.c.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [/home/tskuan/CFD/OpenFOAM/OpenFOAM-1.4/applications/bin/linux64Gcc4DPOpt/gambit ToFoam] Error 1
seang is offline   Reply With Quote

 


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.com] Undefined reference to %60yyFlexLexeryywrapb arjaan OpenFOAM Installation 13 June 1, 2016 12:33
Undefined reference mateusz_slowikowski OpenFOAM Running, Solving & CFD 7 February 27, 2015 14:35
Undefined reference to %60yyFlexLexeryywrapb zhoubinwx OpenFOAM Bugs 1 May 28, 2008 05:57
Undefined reference mateusz_slowikowski OpenFOAM Running, Solving & CFD 3 March 11, 2008 12:19
Compiling liftDrag crashed with initc%3cIMG SRC%3d%22httpopenfoamcfdonlinecomforumclipartsadgif%22 ALT%3d%22%22 BORDER%3d0%3etext0x20 undefined reference to %60mainb sponiar OpenFOAM Running, Solving & CFD 2 January 17, 2008 04:00


All times are GMT -4. The time now is 11:25.