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

Undefined reference to ...

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 17, 2012, 10:46
Default Undefined reference to ...
  #1
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18
anishtain4 is on a distinguished road
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?
anishtain4 is offline   Reply With Quote

Old   July 18, 2012, 10:31
Default
  #2
Senior Member
 
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 284
Blog Entries: 5
Rep Power: 21
tomislav_maric is on a distinguished road
@Mahdi..

Hi, can you post the whole error message?
tomislav_maric is offline   Reply With Quote

Old   July 18, 2012, 11:05
Default
  #3
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18
anishtain4 is on a distinguished road
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
anishtain4 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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


All times are GMT -4. The time now is 21:32.