CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 19, 2013, 12: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


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] difficulties installing swak4foam newbie29 OpenFOAM Community Contributions 120 October 21, 2022 05:01
when running tutorial: Permission denied collect2: ld returned 1 exit status semaviso OpenFOAM Running, Solving & CFD 3 December 12, 2019 11:03
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 13:41
[swak4Foam] Installing swak4Foam to OpenFOAM in mac Kaquesang OpenFOAM Community Contributions 22 January 21, 2013 12:51
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 18:23.