CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   calling a non OF class from OF? (

mugi February 24, 2012 10: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!


adhiraj February 25, 2012 13: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 19:47.