linking against win32 libs?

Nibbie
Posts: 2
Joined: 2008.05
Post: #1
I've got some lib files (of boost and nvidia's cg) that im using under windows. The boost libs i've built my self under windows. I'm wondering if lib files are cross platform or if i need to rebuild boost under mac and get mac lib files for cg.

Also does mac use the .lib extension like windows, or the .a extension like linux for library files?
Quote this message in a reply
Moderator
Posts: 1,554
Joined: 2003.10
Post: #2
1: .lib is not cross-platform. You'll need to rebuild them.
2: The Mac uses .a for static libs, and .dylib/.bundle/.framework for dynamic libs (the latter two of which are simply directory structures containing a dylib and some other stuff).
Quote this message in a reply
Luminary
Posts: 5,131
Joined: 2002.04
Post: #3
To be clear, just because Mac OS X and Linux both use ".a" for static libraries does not make them in any sense compatible.

A framework contains a dylib, and a .bundle can be either a package or a single file, but "bundle" and "dylib" are not semantically equivalent on Mac OS X, unlike Linux/Windows where .so/.dll covers both.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Prebinding for Ogg and Voribs libs/frameworks unknown 2 2,278 Nov 16, 2005 10:03 AM
Last Post: unknown
  ODE: Where did the built libs go? PowerMacX 3 3,513 Mar 8, 2005 06:44 PM
Last Post: PowerMacX