Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!hp-pcd!hpfcso!hpfcdq!cal From: cal@hpfcdq.HP.COM (Cal Selig) Newsgroups: comp.sys.hp Subject: Re: Problem calling AGP graphics from C Message-ID: <350035@hpfcdq.HP.COM> Date: 11 Jan 91 20:31:24 GMT References: Organization: Hewlett-Packard - Fort Collins, CO Lines: 50 > I'm trying to write some code in C that calls the AGP graphics > package. The machine is a 9000/835 running HP-UX 7.0. > > Here's a program that illustrates the problem: > > #include > #include > #include > void main() > { > jbegn(); > jend(); > } > > cc test.c -lUPLIB Part of the problem is that you are missing the C language library libcl.a. That's only part of the problem though. In the 7.0 release, an error was discovered late in the program in the C compiler that also requires adding two stubs files into the link string when using C. I believe that the only place that this problem was talked about (due to time contraints) is in the README FIRST document for AGP/DGL. The correct compile line is: cc test.c -lUPLIB -lcl -lisamstubs -lnlsstubs Hope this helps. > > Len > -- > ------------------------------------------------------------------------ > | Len Saaf, The Institute of Optics, Univ. of Rochester, Rochester, NY | > | Internet: saaf@joker.optics.rochester.edu Bitnet: SAAF@UOROPT | > ------------------------------------------------------------------------ > ---------- Cal -- /\ Calvin L. Selig / \ Graphics Technology Division / \ /\ Software Engineer /vvvvvv\ / \ Mail Stop #74 / /\ /vvvv\ hpfcra!cal [SMTP] / /vv\ / \ cal%hpfcra@hplabs.hp.com / / \/ /\ \ (303) 229-4972 / / \/ \/\ \ __/__/_______/___/__\___\__________________________________________________ G T D 3404 East Harmony Road Fort Collins, CO 80525