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

What does this Error mean?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 17, 2012, 08:22
Default What does this Error mean?
  #1
Member
 
Join Date: Nov 2009
Posts: 34
Rep Power: 16
Christoph_84 is on a distinguished road
I programmed a Solver, witch works on one PC, now I want to compile the code on an other one and got this error:


Code:
nem@linux-81gf:~/OpenFOAM/nem-1.7.1/Solvers/StaubThermoDust_2D_Mix> wmake
 Making dependency list for source file StaubEx.C
 SOURCE=StaubEx.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/thermophysicalModels/basic/lnInclude     -I/opt/openfoam171/src/thermophysicalModels/specie/lnInclude     -I/opt/openfoam171/src/thermophysicalModels/basic/lnInclude     -I/opt/openfoam171/src/thermophysicalModels/reactionThermo/lnInclude     -I/opt/openfoam171/src/turbulenceModels/compressible/turbulenceModel     -I/opt/openfoam171/src/finiteVolume/cfdTools     -I/opt/openfoam171/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/StaubEx.o
 /opt/openfoam171/src/finiteVolume/lnInclude/readPIMPLEControls.H: In Funktion »int main(int, char**)«:
 /opt/openfoam171/src/finiteVolume/lnInclude/readPIMPLEControls.H:12:10: Warnung: Variable »transonic« wird nicht verwendet
 g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/thermophysicalModels/basic/lnInclude     -I/opt/openfoam171/src/thermophysicalModels/specie/lnInclude     -I/opt/openfoam171/src/thermophysicalModels/basic/lnInclude     -I/opt/openfoam171/src/thermophysicalModels/reactionThermo/lnInclude     -I/opt/openfoam171/src/turbulenceModels/compressible/turbulenceModel     -I/opt/openfoam171/src/finiteVolume/cfdTools     -I/opt/openfoam171/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed Make/linux64GccDPOpt/StaubEx.o -L/opt/openfoam171/lib/linux64GccDPOpt \
      -lbasicThermophysicalModels     -lspecie     -lcompressibleTurbulenceModel     -lcompressibleRASModels     -lcompressibleLESModels     -lfiniteVolume     -lmeshTools -lOpenFOAM -liberty -ldl   -lm -o /home/nem/OpenFOAM/nem-1.7.1/applications/bin/linux64GccDPOpt/StaubEx2DMix
 Make/linux64GccDPOpt/StaubEx.o: In function `main':
 StaubEx.C:(.text+0x3bf8): undefined reference to `Foam::hCombustionThermo::New(Foam::fvMesh const&)'
 collect2: ld gab 1 als Ende-Status zurück
 make: *** [/home/nem/OpenFOAM/nem-1.7.1/applications/bin/linux64GccDPOpt/StaubEx2DMix] Fehler 1
 nem@linux-81gf:~/OpenFOAM/nem-1.7.1/Solvers/StaubThermoDust_2D_Mix>
to test it i make a copy of rhoReactingFoam and try to compile this and got a similar error


Code:
nem@linux-81gf:~/OpenFOAM/nem-1.7.1/Solvers/rhoReactingFoam_test> wmake
 g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/turbulenceModels/compressible/turbulenceModel     -I/opt/openfoam171/src/thermophysicalModels/specie/lnInclude     -I/opt/openfoam171/src/thermophysicalModels/reactionThermo/lnInclude     -I/opt/openfoam171/src/thermophysicalModels/basic/lnInclude     -I/opt/openfoam171/src/thermophysicalModels/chemistryModel/lnInclude     -I/opt/openfoam171/src/ODE/lnInclude     -I/opt/openfoam171/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed Make/linux64GccDPOpt/rhoReactingFoam.o -L/opt/openfoam171/lib/linux64GccDPOpt \
      -lbasicThermophysicalModels     -lspecie     -lcompressibleTurbulenceModel     -lcompressibleRASModels     -lcompressibleLESModels     -lfiniteVolume     -lmeshTools -lOpenFOAM -liberty -ldl   -lm -o /home/nem/OpenFOAM/nem-1.7.1/applications/bin/linux64GccDPOpt/rhoReactingFoam_test
 Make/linux64GccDPOpt/rhoReactingFoam.o: In function `main':
 rhoReactingFoam.C:(.text+0x23a8): undefined reference to `Foam::rhoChemistryModel::New(Foam::fvMesh const&)'
 collect2: ld gab 1 als Ende-Status zurück
 make: *** [/home/nem/OpenFOAM/nem-1.7.1/applications/bin/linux64GccDPOpt/rhoReactingFoam_test] Fehler 1
 nem@linux-81gf:~/OpenFOAM/nem-1.7.1/Solvers/rhoReactingFoam_test>
What does this mean and how I can solve it?


Christoph
Christoph_84 is offline   Reply With Quote

Old   September 17, 2012, 09:17
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Christoph,

Are both machines using the same version of OpenFOAM?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 17, 2012, 09:55
Default
  #3
Member
 
Join Date: Nov 2009
Posts: 34
Rep Power: 16
Christoph_84 is on a distinguished road
Yes, both 1.7.1, I have now solved the problem by recompiling OpenFoam. It seams that the computer wasn’t set up properly.


Christoph
Christoph_84 is offline   Reply With Quote

Reply


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



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