CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   my_basicKinematicCloud.H: No such file or directory (https://www.cfd-online.com/Forums/openfoam-programming-development/89371-my_basickinematiccloud-h-no-such-file-directory.html)

catapult June 10, 2011 09:53

my_basicKinematicCloud.H: No such file or directory
 
Hi there,

I compiled successfully a modifed library called "my_basicKinematicCloud.so" using wmake libso

now i want to link it to a solver but i get the following error:
mySimpleFoam.C:35: fatal error: my_basicKinematicCloud.H: No such file or directory

I believe i have problems in my Make file. I tried this:
EXE_LIBS = \
-L$(HOME)/gl/OpenFOAM/gl-1.7.1/lib/linuxGccDPOpt

but in vain. I don t know how to solve this.

Any hint will be appreciated! thanks a lot in advance!
Gregory

marupio June 10, 2011 10:40

The error you are getting is not associated with linking - it isn't complaining that it can't find the .so file (actually it would complain that it can't find the implementation of the functions). It is complaining that it can't find the header file - a compile error.

Did you include the path to the header file in your mySimpleFoam application? It could also have to do with the lnInclude directory needs to be updated - do you see the my_basicCloud....H file in its associated lnInclude directory? The last thing I can think of is circular dependency... but I doubt it (never seen it before when compiling an application).

deepsterblue June 10, 2011 10:42

You need to add a EXE_INC entry in Make/options which points to the header file:

my_basicKinematicCloud.H

catapult June 14, 2011 02:52

It works. Thanks
 
Thank you very much for your replies!

I got it working now. I added the following path to the EXE_INC as follows:

-------------------------------------
EXE_INC = \
-I/home/user/OpenFOAM/gl-1.7.1/myKinematicCloud/lnInclude
-------------------------------------

It compiled like a charm :)


All times are GMT -4. The time now is 03:44.