www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/28/23:48:58

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: GPP fails in Make
Date: Sat, 28 Mar 1998 23:35:09 -0500
Organization: Two pounds of chaos and a pinch of salt.
Lines: 25
Message-ID: <351DCF7D.1C54@cs.com>
References: <351D6998 DOT 28016F65 AT home DOT com>
NNTP-Posting-Host: ppp245.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Edward F. Sowell wrote:
> 
> If I compile a main.cpp at he commandline:
> gcc -c -v -o main.obj main.cpp
> 
> it works fine.  However, when the equivalent command is in a makefile
> it fails with
> 
> make.exe *** [main.obj] Error -1

I'm not sure if this is precisely the cause of your problem, but try
changing those .obj suffixes to .o.  DJGPP uses the GNU/Unix naming
convention for object files, and using a suffix it doesn't recognize
could cause the programs to malfunction.

If that doesn't help, add -v to the CFLAGS of the makefile, capture the
results with 'redir', and post them.

-- 
---------------------------------------------------------------------
|      John M. Aldrich       | "Animals can be driven crazy by pla- |
|       aka Fighteer I       | cing too many in too small a pen.    |
|   mailto:fighteer AT cs DOT com   | Homo sapiens is the only animal that |
| http://www.cs.com/fighteer | voluntarily does this to himself."   |
---------------------------------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019