CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   Problem for linking (

hsing April 18, 2006 16:49

I just downloaded the most rec
I just downloaded the most recent OpenFoam release (v1.3). It works when I use the inherent solvers.

However, when I build my own solver, it complaining can not find library "" in ~/OpenFOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt, and it indeed does not exit there. I find the file appears in the directory of ~/OpenFOAM/OpenFOAM-1.3/lib/linuxAMD64Gcc4DPOpt. However, if I direct the linking path to ~/OpenFOAM/OpenFOAM-1.3/lib/linuxAMD64Gcc4DPOpt, it prints:
"skipping incompatible ~/OpenFOAM/OpenFOAM-1.3/lib/linuxAMD64Gcc4SPOpt/ when searching for -lfiniteVolume;
cannot find -lfiniteVolume"

Is it because this version of release is not complete?

mbeaudoin April 19, 2006 00:45

Well, it looks like you are li
Well, it looks like you are linking a 32-bit application with a 64-bit library.

You need to compile your application for AMD64 as well if you want to link with the libraries under ~/OpenFOAM/OpenFOAM-1.3/lib/linuxAMD64Gcc4SPOpt.

Check your WM_64 environment variable... It needs to be set for enabling the right 64-bit compilation and linking options.


gschaider April 19, 2006 04:07

Apart from the mixing of 32 an
Apart from the mixing of 32 and 64 libraries: is there a reason why you're mixing single precision (SP) and double precision (DP) libraries? Im quite sure this won't work.

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