c++.command-line - spaces before target in makefiles
- Denis Troshin (11/11) May 29 2004 Here is an example of mak-file:
- Walter (3/14) May 29 2004 Where exactly are you putting a space?
- Denis Troshin (18/39) May 30 2004 Here are line numbers and column numbers:
- Scott Michel (3/14) May 30 2004 Works a lot better if you use tabs, not spaces. Shame on you
- Denis Troshin (20/21) May 30 2004 Here are line numbers and column numbers:
- Walter (2/2) May 30 2004 That is a syntax error. Leading spaces are not allowed on target lines. ...
Here is an example of mak-file: test.exe : test.obj link test.obj test.obj: test.c sc -c test.c If I insert a space before target, SMAKE says: SMAKE fatal error: SNAPSHOT.MAK(1): syntax error: " ": " " missing EndOfFile in makefile There a lot of other errors because of spaces Shame on you GUYS!
May 29 2004
"Denis Troshin" <weiv mail.ru> wrote in message news:c9a4am$2a9d$1 digitaldaemon.com...Here is an example of mak-file: test.exe : test.obj link test.obj test.obj: test.c sc -c test.c If I insert a space before target, SMAKE says: SMAKE fatal error: SNAPSHOT.MAK(1): syntax error: " ": " " missing EndOfFile in makefile There a lot of other errors because of spaces Shame on you GUYS!Where exactly are you putting a space?
May 29 2004
In article <c9b4a8$kuj$1 digitaldaemon.com>, Walter says..."Denis Troshin" <weiv mail.ru> wrote in message news:c9a4am$2a9d$1 digitaldaemon.com...Here are line numbers and column numbers: 123456789 1: test.exe : test.obj 2: link test.obj 3: test.obj : test.c 4: sc -c test.c For example, if I insert space on line 1 at column 1, previous example will look like this: 123456789 1: test.exe : test.obj 2: link test.obj 3: test.obj : test.c 4: sc -c test.c In this case SMAKE says: SMAKE fatal error: SNAPSHOT.MAK(1): syntax error: " ": " " missing EndOfFile in makefileHere is an example of mak-file: test.exe : test.obj link test.obj test.obj: test.c sc -c test.c If I insert a space before target, SMAKE says: SMAKE fatal error: SNAPSHOT.MAK(1): syntax error: " ": " " missing EndOfFile in makefile There a lot of other errors because of spaces Shame on you GUYS!Where exactly are you putting a space?
May 30 2004
Denis Troshin <weiv mail.ru> wrote:Works a lot better if you use tabs, not spaces. Shame on you for now using the tool correctly.Here are line numbers and column numbers: 123456789 1: test.exe : test.obj 2: link test.obj 3: test.obj : test.c 4: sc -c test.cShame on you GUYS!Where exactly are you putting a space?
May 30 2004
In article <c9b4a8$kuj$1 digitaldaemon.com>, Walter says...Here are line numbers and column numbers: ___123456789 1: test.exe : test.obj 2: link test.obj 3: test.obj : test.c 4: sc -c test.c Now at position (1, 1) is letter 't'. For example, if I insert space on line 1 at column 1, previous example will look like this: ___123456789 1: test.exe : test.obj 2: link test.obj 3: test.obj : test.c 4: sc -c test.c At position (1, 1) will be space. In this case SMAKE says: SMAKE fatal error: SNAPSHOT.MAK(1): syntax error: " ": " " missing EndOfFile in makefileWhere exactly are you putting a space?
May 30 2004
That is a syntax error. Leading spaces are not allowed on target lines. For better or worse, that's how makefiles work.
May 30 2004