|
[Sponsors] |
Can't use "const fvMesh& mesh" in custom class? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 12, 2021, 09:47 |
Can't use "const fvMesh& mesh" in custom class?
|
#1 |
Senior Member
David Long
Join Date: May 2012
Location: Germany
Posts: 104
Rep Power: 14 |
Hi Foamers,
I created a custom class T that uses fvMesh as const reference member. However, when I call it in the main() function, after "createMesh.H" (mesh created), some error pops out: Code:
T t(mesh); error: undefined reference to `Foam::T::T(Foam::fvMesh const&)' Code:
protected: //- No copy construct fvMesh(const fvMesh&) = delete; //- No copy assignment void operator=(const fvMesh&) = delete; |
|
Tags |
constant reference, fvmesh |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Undefined reference to custom class | cryabroad | OpenFOAM Programming & Development | 5 | July 3, 2018 03:21 |
The udf.h headers are unable to open- in VISUAL STUDIO 13 | sanjeetlimbu | Fluent UDF and Scheme Programming | 4 | May 2, 2016 06:38 |
Possible bug in OpenFoam Interpolation class | MMC15 | OpenFOAM Bugs | 2 | March 23, 2014 13:55 |
Nested class and inheritance permissions | MMC15 | OpenFOAM Programming & Development | 0 | December 20, 2013 11:16 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 21:30 |