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

complier new slover error "undefined reference to"

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 23, 2020, 03:46
Post complier new slover error "undefined reference to"
  #1
New Member
 
王子阳
Join Date: Aug 2019
Posts: 29
Rep Power: 7
wangziyang is on a distinguished road
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
wangziyang is offline   Reply With Quote

Reply

Tags
undefined reference to


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
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


All times are GMT -4. The time now is 04:28.