CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Error Code: "collect2: ld returned 1 exit status" during buil (http://www.cfd-online.com/Forums/openfoam-programming-development/119547-error-code-collect2-ld-returned-1-exit-status-during-buil.html)

JasonBecker June 19, 2013 11:05

Error Code: "collect2: ld returned 1 exit status" during buil
 
I am currently using OpenFOAM 2.1.0. I am somewhat new to OpenFOAM and have been having some difficulty merging mhdFOAM with interFOAM. When I attempt to run wmake to build an .exe file, i get the following:

Quote:

g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam210/src/transportModels -I/opt/openfoam210/src/transportModels/incompressible/lnInclude -I/opt/openfoam210/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam210/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam210/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linuxGccDPOpt/khiFoam.o -L/opt/openfoam210/platforms/linuxGccDPOpt/lib \
-ltwoPhaseInterfaceProperties -lincompressibleTransportModels -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lfiniteVolume -lOpenFOAM -ldl -lm -o /home/jasonb/OpenFOAM/jasonb-2.1.0/platforms/linuxGccDPOpt/bin/khiFoam
Make/linuxGccDPOpt/khiFoam.o: In function `main':
khiFoam.C:(.text+0x7dd6): undefined reference to `Foam::incompressible::turbulenceModel::New(Foam:: GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::transportModel&)'
collect2: ld returned 1 exit status
make: *** [/home/jasonb/OpenFOAM/jasonb-2.1.0/platforms/linuxGccDPOpt/bin/khiFoam] Error 1

Any idea what I need to fix?
Thanks,
Jason Becker


All times are GMT -4. The time now is 20:34.