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

Whats the difference of lib and libo?

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Display Modes
Old   March 5, 2015, 08:59
Default Whats the difference of lib and libo?
  #1
Senior Member
 
Dongyue Li
Join Date: Jun 2012
Location: Torino, Italy
Posts: 676
Rep Power: 8
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, 16:21
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,511
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 17:52.