|
[Sponsors] |
July 17, 2012, 10:46 |
Undefined reference to ...
|
#1 |
Senior Member
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18 |
I'm trying to write a utility for making compressible homogeneous turbulent box flow. To achieve that change turbGen.H and turbGen.C have to be modified. Since I don't want to modify them, I have copied them in my user directory/application/utility/cboxTurb and changed their name to cturbGen.H and cturbGen.C. As it comes out cturbGen.H is being used correctly but when it wants to define the functions from cturbGen.C compiler complains:
undefined reference to `Foam::cturbGen::cturbGen...` How should I make it understand where is the cturbGen.C file? should the "turbGen.dep" be changed in the Foam directory? |
|
July 18, 2012, 11:05 |
|
#3 |
Senior Member
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18 |
Actually this is the problem, no matter what I write in my ctubGen.C, it compiles without any problem which means wmake is not using my file at all, however I have added the header in my main file which is cboxTurb.C
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Second Derivative Zero - Boundary Condition | fu-ki-pa | OpenFOAM | 11 | March 27, 2021 04:28 |
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 | Attesz | OpenFOAM Installation | 45 | January 13, 2012 12:38 |
Error with Wmake | skabilan | OpenFOAM Installation | 3 | July 28, 2009 00:35 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 19:08 |
G95 + CGNS | Bruno | Main CFD Forum | 1 | January 30, 2007 00:34 |