 |
 |
How different is C code likely to be from OS 8 to OS X?
|
 |
|
 |
|
Mac Elite
Join Date: Feb 2001
Location: adrift in a sea of decadent luxury and meaningless sex
Status:
Offline
|
|
Say I have some libraries that are in the form of header.h and library.lib (you can see them at http://download.microsoft.com/downlo..._PPC_Setup.hqx ), and in all likelihood they were created 2 years ago. Is it possible to use them to compile code for OS X? Are the .lib files tied to OS pre-X? I can get Hello World to compile with the headers included, but I can't call any functions from the headers. If I call function x, project builder and cc both give the linking error undefined symbol _x
is there any hope?
TIA
|
|
blackmail is such an ugly word. I prefer extortion. the X makes it sound cool
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
Unless the library is Carbon, you won't be able to use it. If it is Carbon, it is probably CFM, which means you'll have to either use a CFM binary or call the CFM API at runtime to use it.
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Jan 2001
Location: Boston, MA
Status:
Offline
|
|
If you can compile the code on Mac OS X, using Project Builder/gcc or CodeWarrior, you may be able to use the CoreFoundation CFBundle APIs to call the functions within the code. You'll need to know all the function signatures beforehand though (functions names, parameters and return types).
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
Originally posted by SoClose:
If you can compile the code on Mac OS X, using Project Builder/gcc or CodeWarrior, you may be able to use the CoreFoundation CFBundle APIs to call the functions within the code. You'll need to know all the function signatures beforehand though (functions names, parameters and return types).
He doesn't have the code, it's a precompiled library.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |