Xref: utzoo comp.sys.mac.hypercard:254 comp.sys.mac:10879 Path: utzoo!utgpu!water!watmath!clyde!rutgers!ukma!psuvm.bitnet!rice.bitnet!storkel From: STORKEL@RICE.BITNET (Scott Storkel) Newsgroups: comp.sys.mac.hypercard,comp.sys.mac Subject: HyperCard XFCNs in MPW C Message-ID: <226STORKEL@RICE> Date: 18 Jan 88 22:09:27 GMT Organization: Rice University - ICSA Lines: 26 Help! I am trying to compile a Hypercard XFCN written in MPW C. The program compiles fine, then I try to link it using the following commands: link -sn Main=Bool -sn STDIO=Bool: -sn INTENV=Bool -rt XFCN=5: -m BOOL Boolean.c.o "{CLibraries}"CRuntime.o: "{CLibraries}"CInterface.o: "{CLibraries}"StdCLib.o: "{CLibraries}"CSANELib.o: -o HyperCommands When I do this, the compiler gives me the error "Data initialization code is not being called" and terminates. The output file contains the XFCN resources Bool=5, and also SADEV=6, SACONSOL=7, and CSANELIB=8. The code was written to conform to the XFCN guidelines available on INFO-MAC, but uses some additional #include files. The link statement is the same as that in CFlash.c, except for the additional link modules. What am I doing wrong? How do I get this to compile as a single XCFN resource? Thanks for the info, Scott Storkel Macintosh Software Development Rice University