Solved

builtins.mak

Posted on 1997-01-21
1
410 Views
Last Modified: 2008-03-10
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
Comment
Question by:Scott Schafer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
marlowe012797 earned 100 total points
ID: 1249628
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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question