Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ Compiling the server
➜ Make File Syntax Error
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Mercury359
(1 post) Bio
|
| Date
| Tue 15 Apr 2003 12:34 PM (UTC) |
| Message
| the cygwin shell is as follows:
Mercury@mercury /cygdrive/c/bc/src
$ make
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
Error makefile 36: Command syntax error
Error makefile 37: Command syntax error
*** 2 errors during make ***
lines 36 & 37 -
31 ack: $(O_FILES)
32 rm -f ack.exe
33 $(CC) $(L_FLAGS) -o ack $(O_FILES)
34
35 .c.o: ack.h
36 $(CC) -c $(C_FLAGS) -Dunix -DNOCRYPT $<
37
38 clean:
39 rm -f $(O_FILES) ack.exe ../area/core
40 make
41
(41 is the EOF)
any help would be appreciated, again... syntax error in "Makefile" when trying to compile via CygWin under Windows 2k Adv Server
| | Top |
|
| Posted by
| Boborak
USA (228 posts) Bio
|
| Date
| Reply #1 on Tue 15 Apr 2003 02:01 PM (UTC) |
| Message
| Makefiles have a very picky syntax. One thing you'll want to check is the spacing before line 36. Makefiles need a TAB, not spaces from the begining of the line to the start of the command. For example:
.c.o: mud.h
$(CC) -c $(C_FLAGS) $<
Ensure that space is an actual TAB and not just 8 spaces.
Also check that there isn't a "floating" space at the end of line 36 and you have a clean line break. Finally, check to make sure you have a CC=gcc line at the top of your file. | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
10,288 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top