Weird Problem while compiling new library
Hello everyone,
I am trying to compile $FOAM_SRC/transportModels separately since I want to rewrite the $FOAM_SRC/transportModels/interfaceProperties library. I created $WM_PROJECT_USER_DIR/src folder and copied $FOAM_SRC/transportModels to it. The library seems to compile correctly and is present in $FOAM_USER_LIBBIN. I then copied interFOAM to $WM_PROJECT_USER_DIR/applications to compile the solver based on this "new" libraries. Changed all the required data in Make/options as well. However, when I try to compile interFOAM using these "new" libraries, I get undefined references. I have attached the error report for the solver compilation. Has someone faced this or a similar kind of problem? I can provide all the information required, if someone is able to help me ! PS. OpenFOAM-5.x |
Okay, I seem to have solved the problem myself. Turns out that wmake does not return any error if it does not find the correct file in the linking process.
For future reference: ldd libname.socan be used to find which files are not linked correctly and then the correct links can be established. :) |
Quote:
|
Quote:
>> ldd libname.so where libname is the library in the USER OpenFOAM directory (OpenFOAM/usrname/platforms/linuxXYZOpt/libs/libname.so) and post the output so that I could help you debug. |
All times are GMT -4. The time now is 23:22. |