Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpfcso!bigelow From: bigelow@hpfcso.HP.COM (Jim Bigelow) Newsgroups: comp.lang.pascal Subject: Re: Unix system call `open' from HP-Pascal; how? Message-ID: <9110020@hpfcso.HP.COM> Date: 24 Jul 90 15:03:49 GMT References: <1158@gufalet.let.rug.nl> Organization: Hewlett-Packard, Fort Collins, CO, USA Lines: 19 Regarding the problem of having the linker always pick the pascal open rather then the unix system call open, try explicitly including libc.a on the compile line, e.g., pc prog.p -lc This will cause libc.a to be searched *before* libpc.a by generating the following ld line: /bin/ld /lib/crt0.o prog.o -lc -x -lpc -lm -lc Note that libc.a is on the command line twice, the second reference will statisfy libpc.a calls to unix and C. Best regards, Jim Bigelow S300 Pascal Colorado Language Lab Hewlett Packard.