CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   calling a non OF class from OF? (http://www.cfd-online.com/Forums/openfoam/97770-calling-non-class.html)

mugi February 24, 2012 09:26

calling a non OF class from OF?
 
Dear all,

I would like to call a class that is plain C++, not OF related, from OpenFOAM.
The code compiles but if I start the application I get a printStack error related to that class. Do I have to adjust the external class or do I have to tell OF that an external one is called? Or is it not possible at all?

Thanks a lot for every help!

Cheers,
Maike.

adhiraj February 25, 2012 12:26

Can you post more details?
What do you mean by calling a class?
I assume that you included the proper headers and put the location of the libraries in the "Make/options" file.
Are you sure that the class is being instantiated before you try to use it?
Without these details I doubt anyone can really see what the problem is.


All times are GMT -4. The time now is 14:28.