Compiling with your example

Posted by Polarus on Sat 14 Sep 2002 12:20 PM — 6 posts, 22,925 views.

Canada #0
I tried to compile just like your example. Afetr i type make i get this error:
Error on line 69: Bad Syntax for implicit rule, should be .frm.to:

I tried changing that in Makefile, but it didn't help. anyone have any suggestions? I am REALLY new to cygwin
Australia Forum Administrator #1
My lines 69-70 look like this, what do yours look like?


.c.o: mud.h
    $(CC) -c $(C_FLAGS) $(USE_IMC) $<


On the second line the gap is a tab character, not four spaces.
Amended on Sat 14 Sep 2002 11:56 PM by Nick Gammon
Canada #2
.c.o: mud.h
$(CC) -c $(C_FLAGS) $(USE_IMC) $<


That is pasted directly out of Makefile
Canada #3
I even downloaded smaug1.4a_mxp.tgz again, and installed it in the cygwin/home/(mynamehere) dir, and unpacked it and everything following your instructions. Now, the lack of the exe isn't killing me, becuase I can get a smaug server executable, but I can't make clean anything when i install snippets becuase I get that same error.
#4
For some reason when I try to use Cygwin for editing my source code, the commands that you use in your example dont work, like with grep where you said to add the -n at the end so that it would show the line number, it will show me the search results, but without the number, and then after the search listing, it say that -n is not a known command. What I have been told is that there is a new version of cygwin since you wrote the example, is there any way I can get the old version?
Australia Forum Administrator #5
The manual for grep actually says:

grep [options] PATTERN [FILE...]


Try using the options (eg. -n) before the files, eg.

grep -n 'Thoric' *.c