CFD Online Discussion Forums
(
https://www.cfd-online.com/Forums/
)
-
OpenFOAM Programming & Development
(
https://www.cfd-online.com/Forums/openfoam-programming-development/
)
- -
Whats the difference of lib and libo?
(
https://www.cfd-online.com/Forums/openfoam-programming-development/149516-whats-difference-lib-libo.html
)
sharonyue
March 5, 2015 07:59
Whats the difference of lib and libo?
Hello guys!
In UG, we have:
Code:
lib Build a statically-linked library
libo Build a statically-linked object file library
So what is the difference between lib and libo? Thanks very much!
wyldckat
March 6, 2015 15:21
Quick answer:
"lib" creates for example "libOpenFOAM.a", which can be linked as is it were a dynamic library:
http://en.wikipedia.org/wiki/Static_library
"libo" essentially merges several "*.o" files into a single "*.o" file. Then you have to explicitly include the "libOpenFOAM.o" file by full name in the binary being built.
All times are GMT -4. The time now is
09:46
.