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
Solved

builtins.mak

Posted on 1997-01-21
1
407 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
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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

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…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.

839 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