CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Whats the difference of lib and libo?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 5, 2015, 07:59
Default Whats the difference of lib and libo?
  #1
Senior Member
 
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 838
Rep Power: 17
sharonyue is on a distinguished road
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!
sharonyue is offline   Reply With Quote

Old   March 6, 2015, 15:21
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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.
sharonyue likes this.
wyldckat is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 20:47.