CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

Error Code: "collect2: ld returned 1 exit status" during buil

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

LinkBack Thread Tools Display Modes
Old   June 19, 2013, 11:05
Default Error Code: "collect2: ld returned 1 exit status" during buil
New Member
Jason Becker
Join Date: Jun 2013
Location: West Lafayette, IN
Posts: 1
Rep Power: 0
JasonBecker is on a distinguished road
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:

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?
Jason Becker
JasonBecker is offline   Reply With Quote


collect2, error 1, wmake

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
[swak4Foam] difficulties installing swak4foam newbie29 OpenFOAM Community Contributions 82 July 18, 2015 17:16
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 12:41
[swak4Foam] Installing swak4Foam to OpenFOAM in mac Kaquesang OpenFOAM Community Contributions 22 January 21, 2013 12:51
when running tutorial: Permission denied collect2: ld returned 1 exit status semaviso OpenFOAM Running, Solving & CFD 2 November 10, 2011 03:11
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30

All times are GMT -4. The time now is 09:42.