|
[Sponsors] |
August 22, 2008, 06:48 |
Dear all,
When we compile ou
|
#1 |
Senior Member
|
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 |
|
August 22, 2008, 08:08 |
Dear Foamers,
have a seriou
|
#2 |
Member
Stefan Radl
Join Date: Mar 2009
Location: Graz, Austria
Posts: 82
Rep Power: 18 |
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 |
|
August 22, 2008, 13:39 |
Hi Stefan,
I have the same pr
|
#3 |
Senior Member
Francesco Del Citto
Join Date: Mar 2009
Location: Zürich Area, Switzerland
Posts: 237
Rep Power: 18 |
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 |
|
September 3, 2008, 10:00 |
Dear Francesco,
thank you -
|
#4 |
Member
Stefan Radl
Join Date: Mar 2009
Location: Graz, Austria
Posts: 82
Rep Power: 18 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF compiling problem | Wouter | Fluent UDF and Scheme Programming | 6 | June 6, 2012 05: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 02:39 |