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

What does this Error mean?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 17, 2012, 08:22
Default What does this Error mean?
  #1
Member
 
Join Date: Nov 2009
Posts: 34
Rep Power: 7
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,508
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Christoph,

Are both machines using the same version of OpenFOAM?

Best regards,
Bruno
wyldckat is online now   Reply With Quote

Old   September 17, 2012, 09:55
Default
  #3
Member
 
Join Date: Nov 2009
Posts: 34
Rep Power: 7
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

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



All times are GMT -4. The time now is 15:46.