CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Compiling problem

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 22, 2008, 05:48
Default Dear all, When we compile ou
  #1
Senior Member
 
ZHOU Bin
Join Date: Mar 2009
Location: Nanjing/Shanghai/Torino, Nanjing/Shanghai/Piemente, China/Italy
Posts: 164
Rep Power: 8
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,
When we compile our code, we get:

Make/linuxGccDPOpt/IncompressibleCloud.o: In function `Foam::Cloud<foam::hardballparticle>::type() const':
IncompressibleCloud.C.text._ZNK4Foam5CloudINS_16HardBallParticleEE4type Ev[Foam::Cloud<foam::hardballp article>::type() const]+0x11): undefined reference to `Foam::Cloud<foam::hardballparticle>::typeName'
collect2: ld returned 1 exit status
make: *** [/home/zhou/OpenFOAM/zhou-1.5/applications/bin/linuxGccDPOpt/particleFoam] Error 1

Do you have any opinion about this?

By the way, in
Make/files:
particleFoam.C

HardBallParticle.C

IncompressibleCloud.C



EXE = $(FOAM_USER_APPBIN)/particleFoam

Make/options:
EXE_INC = \

-I$(LIB_SRC)/cfdTools/incompressible \

-I$(LIB_SRC)/OpenFOAM/lnInclude \

-I$(LIB_SRC)/lagrangian/basic/lnInclude \

-I$(LIB_SRC)/cfdTools/general/lnInclude \

-I$(LIB_SRC)/finiteVolume/lnInclude



EXE_LIBS = -lfiniteVolume \

-llagrangian

Many thanks.

Bin
zhoubinwx is offline   Reply With Quote

Old   August 22, 2008, 07:08
Default Dear Foamers, have a seriou
  #2
Member
 
sradl's Avatar
 
Stefan Radl
Join Date: Mar 2009
Location: Graz, Austria
Posts: 82
Rep Power: 9
sradl is on a distinguished road
Dear Foamers,

have a serious problem also when linking new applications on a amd64 bit system under debian linux:
-compiling works fine and produces a *.o file in the Make/linux64GccDPOpt directory

- when g++ tries to link it throws:
/home/radl/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/../lib/gcc/x86_64 -unknown-linux-gnu/4.3.1/../../../../lib64/libstdc++.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status

Any advice for this problem?

br
Stefan
sradl is offline   Reply With Quote

Old   August 22, 2008, 12:39
Default Hi Stefan, I have the same pr
  #3
Senior Member
 
Francesco Del Citto
Join Date: Mar 2009
Location: Zürich Area, Switzerland
Posts: 214
Rep Power: 9
fra76 is on a distinguished road
Hi Stefan,
I have the same problem with gcc-4.3.1 on a Suse 10 workstation. Basically, I cannot neither use the precompiled compiler nor compile it from source.
I resolved switching back to gcc 4.2.2, the one distributed with OpenFOAM 1.4.1.
A couple of changes in some source files are needed, but nothing serious.

Regards,
Francesco
fra76 is offline   Reply With Quote

Old   September 3, 2008, 09:00
Default Dear Francesco, thank you -
  #4
Member
 
sradl's Avatar
 
Stefan Radl
Join Date: Mar 2009
Location: Graz, Austria
Posts: 82
Rep Power: 9
sradl is on a distinguished road
Dear Francesco,

thank you - it works perfectly!

The only problem was to get the compiled version of gcc-4.2.1, i finally used this link:

http://www.mirrorservice.org/sites/download.sourceforge.net/pub/sourceforge/f/fo /foam/

However, compiling with the new gcc worked fine on my new openSUSE 11.0 installation on an Intel QuadXtreme.

Thank you once again and have a nice day,

br
Stefan Radl
sradl is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
Udf compiling problem ranjit FLUENT 1 January 26, 2007 11:03
COMPILING PROBLEM ammi FLUENT 1 December 7, 2006 05:07
problem in compiling UDF ammi reddy FLUENT 1 December 1, 2006 07:45
Compiling problem Alper Albayraq FLUENT 7 August 26, 2005 01:39


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