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

problems with compiling self defined class

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   June 15, 2010, 03:51
Unhappy problems with compiling self defined class
  #1
New Member
 
Victor Fleischer
Join Date: Nov 2009
Posts: 21
Rep Power: 16
Victor is on a distinguished road
Hi at all,

i tried to implement my own class(class Tracing) which follows the flameFront and writes the current position of the flame to a file.
So i wrote two files:

Tracing.H

Tracing.C

After including flameTrace.H in my solver and creating an Object of this class by
...
Tracing flameTip;
...
and using the two methods for following the flame and write the position to the file, by:

flameTip.follow();
...
flameTip.write();

I allways get this error message while compiling the solver:


Make/linux64GccDPOpt/reactingTotalFoamFE2.o: In function `main':
reactingTotalFoamFE2.C.text+0x338f): undefined reference to `main::Tracing::Tracing()'
reactingTotalFoamFE2.C.text+0x9bdf): undefined reference to `main::Tracing::~Tracing()'
reactingTotalFoamFE2.C.text+0xa74b): undefined reference to `main::Tracing::follow()'
reactingTotalFoamFE2.C.text+0xa79e): undefined reference to `main::Tracing::writeToFile()'
reactingTotalFoamFE2.C.text+0xdb2a): undefined reference to `main::Tracing::~Tracing()'
collect2: ld returned 1 exit status
make: *** [/nfs/home/fleischer/OpenFOAM/fleischer-1.6.x/applications/bin/linux64GccDPOpt/reactingTotalFoamFE2] Error 1

I don't know what "undefined reference to main::Tracing::....." shoud mean!?

Can anybody help me please!

Thanks a lot in advance!

Victor
Victor is offline   Reply With Quote

 


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
OpenFOAM13 for Mac OSX Darwin 104 hjasak OpenFOAM Installation 70 September 24, 2010 05:06
Problems compiling under 14 grtabor OpenFOAM Running, Solving & CFD 9 July 17, 2007 22:34
User Defined Scalars - Returning Values Carlos V. FLUENT 0 April 19, 2006 18:18
Some problems with Star CD Micha Siemens 0 August 6, 2003 13:55
Compiling MON FLUENT 0 October 20, 2002 20:48


All times are GMT -4. The time now is 13:11.