CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 19, 2013, 11:05
Default Error Code: "collect2: ld returned 1 exit status" during buil
  #1
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:

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

Reply

Tags
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 newbie29 OpenFOAM Installation 82 July 18, 2015 17:16
Error bulding swak4Foam sfigato OpenFOAM Installation 18 August 22, 2013 12:41
Installing swak4Foam to OpenFOAM in mac Kaquesang OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 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 00:50.