Re: compiling
"Paul Akkermans" <paulakkermans@wanadoo.nl> writes:
> I am trying to compile a simple parser. But this is the output I get
> when I am compiling. I think that not all libraries are included
> during compile time. Can somebody help me?
>
> --------------------------------------------------------------------------
> paul@debian:~/softwarecon$ gcc parser.c
> /usr/lib/crt1.o: In function `_start':
> /usr/lib/crt1.o(.text+0x18): undefined reference to `main'
> /tmp/cciorX2H.o: In function `sequence':
> /tmp/cciorX2H.o(.text+0x23f): undefined reference to `forked'
> /tmp/cciorX2H.o: In function `operand':
> /tmp/cciorX2H.o(.text+0x278): undefined reference to `forked'
> collect2: ld returned 1 exit status
> --------------------------------------------------------------------------
"parser.c" lacks a "main" function, and it also references, but does not
define, a function "forked". Most likely, the file "parser.c" does not
contain the complete source code.
Martin
--
,--. ,= ,-_-. =.
/ ,- ) Martin Dickopp, Dresden, Germany ((_/)o o(\_))
\ `-' http://www.zero-based.org/ `-'(. .)`-'
`-. \_/
Reply to:
- References:
- compiling
- From: "Paul Akkermans" <paulakkermans@wanadoo.nl>