Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

builtins.mak

Posted on 1997-01-21
1
Medium Priority
?
412 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 200 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.

705 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