|
[Sponsors] |
January 22, 2020, 15:54 |
Adding new class, how to compile it?
|
#1 |
New Member
Aman uz zaman Baig
Join Date: Nov 2015
Location: Cincinnati, US
Posts: 16
Rep Power: 11 |
Hi all,
I have added a new class for 1D interpolation in SU2 and I have a new .cpp and .hpp file to include with it. During compilation the compiler does not create the object of my class and gives the following error: solver_structure.cpp.text+0x10d98): undefined reference to `CInletInterpolation::CInletInterpolation(CGeometr y**, CConfig*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned short, unsigned short, unsigned short, unsigned short)' solver_structure.cpp.text+0x10e87): undefined reference to `CInletInterpolation::~CInletInterpolation()' solver_structure.cpp.text+0x12426): undefined reference to `CInletInterpolation::~CInletInterpolation()' Are there are any files I have to change so that the compiler can see the new files? Thanks, Aman |
|
January 23, 2020, 10:19 |
|
#2 |
Member
Akshay Koodly
Join Date: Aug 2017
Location: The Netherlands
Posts: 43
Rep Power: 9 |
Hi,
There should be a meson.build in the src/ directory (for ex, https://github.com/su2code/SU2/blob/...rc/meson.build) where all the .cpp files are listed. Can you try adding your *.cpp file in the corresponding directory (there is a meson.build in all */src directories) and try to compile? Regards. |
|
January 23, 2020, 10:38 |
|
#3 |
Senior Member
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 14 |
Hi Aman,
If this relates to your current pull request let's move the conversation to github. Cheers, Pedro |
|
January 23, 2020, 20:03 |
|
#4 |
New Member
Aman uz zaman Baig
Join Date: Nov 2015
Location: Cincinnati, US
Posts: 16
Rep Power: 11 |
Thanks @akoodlyr for your advice. Let me see if that works.
@pcg - Yes this is related to my PR. I will put questions there if it doesn't get resolved. |
|
Tags |
class, compile, su2 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
chtMultiRegionSimpleFoam 3D problem | Lucie | OpenFOAM Pre-Processing | 2 | June 21, 2016 06:23 |
adding new fvm class | danny123 | OpenFOAM Programming & Development | 1 | December 14, 2015 10:53 |
chtMultiRegionFoam, adding a member to an existing class (regionProperties) | romain.h | OpenFOAM Running, Solving & CFD | 1 | October 10, 2012 16:05 |
Can someone PLEASE document the development version installation | bernd | OpenFOAM Installation | 76 | November 14, 2008 22:51 |
Adding new class in version 12 | billy | OpenFOAM Pre-Processing | 1 | October 10, 2005 05:47 |