Solved

builtins.mak

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

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…
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
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 for-loops in the C programming language.

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now