XForms: Re: your mail

Eef Hartman (hartman@math.tudelft.nl)
Tue, 8 Dec 1998 09:17:50 +0100 (MET)

# To subscribers of the xforms list from Eef Hartman <hartman@math.tudelft.nl> :

In a message to me Marcelo Guerreiro da Silva wrote:
> I'm trying to compile a personal archive "teste.c" using makefile, but a
> message returns:

> main /export/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/crt1.o
^^^^
You don't have a routine called "main" (the MAIN program, so the linker
cannot make an executable out of it as it doesn't have a starting address.
For a main program you always one (and ONLY one) function called main:
int main (char **argv, int argc)
(or likewise, see your favorite C programming reference)

-- 
    \     /   /
   /#. # #-  #  /
  ## ## ## ##  ##
 # #   ## ##  ##
" "  #    ## ##
"."  ".   "./
TTTTTTTTTT  UU      UU    Eef Hartman, System Administrator
    TT      UU      UU
    TT      UU      UU    Delft University of Technology
    TT      UU      UU    Mathematics (Applied Analysis) dept.
    TT      UU      UU    Mekelweg 4, P.O. Box 5031
    TT      UU      UU    2600 GA  Delft, The Netherlands
    TT       UU    UU     e-mail : E.J.M.Hartman@math.tudelft.nl
    TT        UUUUUU      fax    : +31-15-278 7209
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil   or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/