|
[Sponsors] |
complier new slover error "undefined reference to" |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 23, 2020, 03:46 |
complier new slover error "undefined reference to"
|
#1 |
New Member
王子阳
Join Date: Aug 2019
Posts: 29
Rep Power: 7 |
hello everyone!
i am trying insert the cavitation model to compressibleInerFoam,,i refer to the InterPhaseChangeFoam 's class "phaseChangeTwoPhaseMixture".And i also write a class "phaseChangeTwoPhaseMixture" into the compressibleInterFoam. The class is complied well done,,but when i comlpier the solver "myFoam"(modified based on compressibleInterFoam ),,it has the following error: /project/zywang2/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/solvers/multiphase/myFoam/myFoam.o: In function `main': myFoam.C.text.startup+0xcde): undefined reference to `Foam:haseChangeTwoPhaseMixture::New(Foam::fvMes h const&)' myFoam.C.text.startup+0x2acd): undefined reference to `Foam:haseChangeTwoPhaseMixture::New(Foam::fvMes h const&)' collect2: error: ld returned 1 exit status make: *** [/home/zywang2/OpenFOAM/zywang2-4.1/platforms/linux64GccDPInt32Opt/bin/myFoam] Error 1 this error " undefined reference to" is an old question,, i check the class "phaseChangeTwoPhaseMixture",,in this class the function "New" is about the RTS mechanism ,i all reference to the interPhaseChangeFoam (link: https://github.com/OpenFOAM/OpenFOAM...woPhaseMixture) Does anybody have a problem like this ? Could anyone help me ? best wishes! ziyang |
|
Tags |
undefined reference to |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Second Derivative Zero - Boundary Condition | fu-ki-pa | OpenFOAM | 11 | March 27, 2021 05:28 |
LEMOS InflowGenerator | r_gordon | OpenFOAM Running, Solving & CFD | 103 | December 18, 2018 01:58 |
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 | Attesz | OpenFOAM Installation | 45 | January 13, 2012 13:38 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |
G95 + CGNS | Bruno | Main CFD Forum | 1 | January 30, 2007 01:34 |