Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!cbmvax!higgin From: higgin@cbmvax.UUCP Newsgroups: comp.sys.amiga Subject: Re: Opening a window Message-ID: <1882@cbmvax.cbmvax.cbm.UUCP> Date: Fri, 15-May-87 22:40:20 EDT Article-I.D.: cbmvax.1882 Posted: Fri May 15 22:40:20 1987 Date-Received: Sun, 17-May-87 00:52:34 EDT References: <4866@jhunix.UUCP> Reply-To: higgin@cbmvax.UUCP (Paul Higginbottom SALES) Organization: Commodore Technology, West Chester, PA Lines: 23 In article <4866@jhunix.UUCP> ins_adjb@jhunix.UUCP (Daniel Jay Barrett) writes: $ Can someone please help a beginning Intuition programmer? $I typed in the example window-opening program on pages 11-12 of the $INTUITION REFERENCE MANUAL, and compiled using Manx 3.20a. The $compilation went fine, but the linker could not find _INTUITIONBASE $defined. Perhaps you typed 'struct INTUITIONBASE' instead of 'struct IntuitionBase'. $ My exact commands were: $ cc +L win.c $ ln win.o -lc ^ | When using the +L option i the compiler, you should specify -lc32, and not -lc. The -l option of the compiler is simply an easier way of specifying a library of object code to link to. Anything after -l is presumed to be the name of a library with a '.lib' suffix, in either the current directory, or one specified by the CLIB environment variable. c.lib contains object modules compiles expecting 16 bit ints, and c32.lib contains object modules compiled with the +l flag (i.e., expecting 32 bit ints). Paul.