CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Error compiling coldEngineFoam OpenFOAM-1.6-ext (http://www.cfd-online.com/Forums/openfoam-installation/83743-error-compiling-coldenginefoam-openfoam-1-6-ext.html)

karamiag January 10, 2011 05:47

Error compiling coldEngineFoam OpenFOAM-1.6-ext
 
Hi guys,
I am using openSUSE 11.3 (x86_64) with gcc 4.5.0 and ld 2.20.0.20100122-6.
When I go in
~/OpenFOAM/OpenFOAM-1.6-ext/applications/solvers/combustion/coldEngineFoam
and launch wmake I have this error:

g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I../engineFoam -I../XiFoam -I/home/tecnici/OpenFOAM/OpenFOAM-1.6-ext/src/engine/lnInclude -I/home/tecnici/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/specie/lnInclude -I/home/tecnici/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/basic/lnInclude -I/home/tecnici/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/reactionThermo/lnInclude -I/home/tecnici/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels/compressible/turbulenceModel -I/home/tecnici/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/tecnici/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/tecnici/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/coldEngineFoam.o -L/home/tecnici/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-lengine -lcompressibleTurbulenceModel -lcompressibleRASModels -lcompressibleLESModels -lbasicThermophysicalModels -lspecie -lfiniteVolume -llduSolvers -lOpenFOAM -liberty -ldl -lm -o /home/tecnici/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/coldEngineFoam
/home/tecnici/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libbasicThermophysicalModels.so: undefined reference to `Foam::specie::Tstd'
/home/tecnici/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libbasicThermophysicalModels.so: undefined reference to `Foam::specie::RR'
/home/tecnici/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libbasicThermophysicalModels.so: undefined reference to `Foam::perfectGas::perfectGas(Foam::Istream&)'
collect2: ld returned 1 exit status
make: *** [/home/tecnici/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/coldEngineFoam] Error 1

Does anyone know how to solve it?
Thank you.

karamiag January 10, 2011 16:04

OK, I have no compilation errors simply changing the order of EXE_LIBS in the options file. This is the content of my options file in the Make directory:

EXE_INC = \
-I../engineFoam \
-I../XiFoam \
-I$(LIB_SRC)/engine/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/turbulenceModels/compressible/turbulenceModel \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude

EXE_LIBS = \
-lengine \
-lbasicThermophysicalModels \
-lcompressibleTurbulenceModel \
-lspecie \
-lcompressibleRASModels \
-lcompressibleLESModels \
-llduSolvers \
-lfiniteVolume


All times are GMT -4. The time now is 02:48.