Re: MathLink under Mac OS X
- To: mathgroup at smc.vnet.net
- Subject: [mg38456] Re: MathLink under Mac OS X
- From: choukoushi at yahoo.com
- Date: Mon, 16 Dec 2002 02:21:05 -0500 (EST)
- References: <aqsrh6$c3e$1@smc.vnet.net> <ateqs8$94i$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Whoops, solved this one myself. Had to upgrade the Developer Package after upgrading to Jaguar. After that, no problem, worked fine. choukoushi at yahoo.com wrote in message news:<ateqs8$94i$1 at smc.vnet.net>... > I had the same problem. Running ranlib did fix the out-of-date error > message. > However, I still get the message "/usr/bin/ld: > /usr/lib/libSystem.dylib load command 9 unknown cmd field". Then, > "make: *** [addtwo] Error 1". > > Anyone seen this? > > > > "P.J. Hinton" <paulh at wolfram.com> wrote in message news:<aqsrh6$c3e$1 at smc.vnet.net>... > > On Tue, 12 Nov 2002, some anonymous coward wrote: > > > > > I'm trying to get the example addtwo to compile, using ProjectBuilder. > > > The Developer's guide says in different places, that I should not use > > > libML.a, and also that I must use it. In any event, I get fatals errors > > > 'out of date' if I try to include it. If I leave it out and use > > > mathlink.framework instead, addtwo compiles but does not run normally. > > > > > > Any suggestions? I've been working on this for days, it is driving me > > > crazy. I'm not a professional software developer and not very familair > > > with ProjectBuilder, either. > > > > MacOS X uses a static library for MathLink, just as has been done with > > other UNIX variants. > > > > There is a known issue for MacOS X wherein it is necessary to run the > > command line tool ranlib on the library file libML.a before building > > executables that are linked against the library. As long as you don't > > move the library file to another location, you need only do this once.