Re: compiling C extension on Mac -- which version Tcl on new Leopard



chewie54 wrote:
Hello,

Are there any good examples of compiling C extensions on the Mac. I
have seen examples on the wiki showing makefiles for Windows and Linux
but the Mac examples uses one line gcc command. I got this example
to work but I have multiple C files and would like to use a makefile
to compile and link the source.

Also, does anyone know what versions of Tcl and Tk come with the new
Leopard OS?

Thanks,


If your C extension is TEA-compliant, you can simply run "configure, make, make-install" -- see the wiki for some specific flags if you have non-standard installations.

If your extension is non-TEA compliant, i.e. uses a makefile, then you'll have to do some hacking.

Alas, I'm not an expert on TEA--it seems somewhat black magic to me. But the examples are supposedly pretty straightforward.

Leopard supposedly has 8.4.7 installed--they didn't update anything from Tiger. That's caused a bit of an uproar on the Tcl-Mac list.

--Kevin

--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
.



Relevant Pages

  • Re: Mac OS X porting help wanted
    ... the makefile was simply outdated. ... If you compile a programm/library on Mac OS X 10.5 against ... To build a dmg, I do ... package. ...
    (rec.games.roguelike.development)
  • Re: Mac OS X porting help wanted
    ... the makefile was simply outdated. ... and I know nothing about Mac coding. ... package. ... site simply because the DMG of the first Mac release was not built ...
    (rec.games.roguelike.development)
  • Re: Compatibility of MOD files
    ... building script, be it a makefile or something else, you might get ... MPW is now one of the dearly departed but the weaknesses of MAKE have ... of adding their extensions but the rest of us mere mortals will have ...
    (comp.lang.fortran)
  • Re: Completion?
    ... Only the X11 makefile compiles on my Mac, all the rest borks on Mac. ... not 4.5) and even after fixing that I cant get the menu working (so I ...
    (rec.games.roguelike.angband)
  • Re: [9fans] Re: ruby port 1.8.1 ready to use
    ... the ready to use ruby doesn't have either a mkfile or a Makefile, ... ruby building process is broken it expects to find files in the current ... the thing is that to make the extensions a miniruby creates ...
    (comp.os.plan9)