> prodcons: prodcons.o
> cc -lpthread prodcons.o
You probably have a 8 or 9 <SPACE> characters in there ...
Also note that libraries should follow objects on commandQuote:> But it gives me the following error:
> bash-2.05$ make -f makefile
> makefile:2: *** missing separator. Stop.
line, not preceed them; so a better link line would be:
<TAB>cc prodcons.o -lpthread
Also, the result of your link will be 'a.out', not 'prodcons'
(as your makefile implies), so correct link line is:
Please post to appropriate newsgroup.
In order to understand recursion you must first understand recursion.