Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!husc6!cmcl2!brl-adm!adm!Tod.Shannon@PS2.CS.CMU.EDU
From: Tod.Shannon@PS2.CS.CMU.EDU
Newsgroups: comp.lang.c
Subject: DECUS C query
Message-ID: <8478@brl-adm.ARPA>
Date: Sat, 25-Jul-87 16:04:56 EDT
Article-I.D.: brl-adm.8478
Posted: Sat Jul 25 16:04:56 1987
Date-Received: Sun, 26-Jul-87 02:14:41 EDT
Sender: news@brl-adm.ARPA
Lines: 19



I'm using DECUS C on RSTS/E under RSX emulation.  I want to write
some C routines and call them from BASIC+2.  I'm running into a problem
where when I task build I'm getting three errors.  The xfr address
is multiply defined, the symbol .NLUNS is multiply defined, and 
MAIN is undefined (since I have no main in my C code since I don't 
want it to run...)

I assume that (since I am really just learning C) the DECUS C compiler
assumes that all C modules must have a routine "main" to which the
xfr address will point when the task is loaded.  Is there any way
to get around this?  Help!

Please reply directly to me as I am not on this list.

							-Tod

P.S. RSTS version is 9.3