"Paul Akkermans" <[EMAIL PROTECTED]> 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? > > -------------------------------------------------------------------------- > [EMAIL PROTECTED]:~/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/ `-'(. .)`-' `-. \_/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]