Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 413
  • Last Modified:

builtins.mak

I have set up a directory structure to put the .obj files in after running make and instead of putting the .obj in the subdirectory i wanted, it is put in the same directory thatI ran make from. I changed the builtins.mak file by changing the reference to the .obj files and now when I compile, I get a "FATAL: Command arguments too long!" error and I don't get it with the old builtins.mak. I compared the two and the only changes I see are dealing with the """ .c.obj:$(CC) $(CFLAGS) -c -o$@  $&.c" and the original is ".c.obj:$(CC) $(CFLAGS) /c $&.c". Do I have a problem with the switches like "/c" or "-o$@"??? Any help is appreciated.
0
Scott Schafer
Asked:
Scott Schafer
1 Solution
 
marlowe012797Commented:
I think your problem is with the "$@". There some odd things about single-char macros and I'm not sure that you don't have to use parens with it.

  You might try "$(@R)" and add the ".obj" yourself.

  As far as the fatal error goes, if I'm right about the above, then because the "$@" is not valid, the parser is thrown off and the end of that line isn't where you think it is (sort of like when you do something like:
   printf("the number is %d, n);
   strcpy(x, "Hello");
the missing quote in the printf raises compiler hell.)
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now