delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/01/26/11:45:33

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Mike C" <My DOT address AT end DOT of DOT post>
Newsgroups: comp.os.msdos.djgpp
References: <wrIJd.42$Bc7 DOT 36 AT newsfe3-win DOT ntli DOT net> <20050126122034 DOT 01459342 DOT lijon AT kymatica DOT com>
Subject: Re: Compile problem
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
Message-ID: <mFPJd.437$Bc7.232@newsfe3-win.ntli.net>
Date: Wed, 26 Jan 2005 16:35:30 GMT
NNTP-Posting-Host: 62.253.115.224
X-Complaints-To: http://www.ntlworld.com/netreport
X-Trace: newsfe3-win.ntli.net 1106757330 62.253.115.224 (Wed, 26 Jan 2005 16:35:30 GMT)
NNTP-Posting-Date: Wed, 26 Jan 2005 16:35:30 GMT
Organization: ntl Cablemodem News Service
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> I think it should be possible to just do:
>
> gcc -o myprog.exe *.c
>
> The usual way is to first compile all the separate .c files like this:
>
> gcc -c file1.c
> gcc -c file2.c
> gcc -c file3.c
>
> then link the resulting objectfiles together like this:
>
> gcc -o myprog.exe file1.o file2.o file3.o
>
> becouse this means you don't need to recompile all files each time, only
> the files you've changed. (create a Makefile and use make)
>
> /Jonatan    -=( http://kymatica.com )=-

Thanks, Jonatan,

That certainly makes it compile. It wouldn't work when I mad a .mak file, so
I just wrote the three statements into a .bat file, and I can execute that,
and it works.

Now, I just need to ship the program off to a colleague and see if it runs
on his PC.

Best regards,

MikeC


- Raw text -


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