From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5657 invoked by alias); 8 Aug 2008 16:12:55 -0000 Received: (qmail 5648 invoked by uid 22791); 8 Aug 2008 16:12:55 -0000 X-Spam-Check-By: sourceware.org Received: from yx-out-1718.google.com (HELO yx-out-1718.google.com) (74.125.44.158) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 08 Aug 2008 16:12:20 +0000 Received: by yx-out-1718.google.com with SMTP id 36so217412yxh.26 for ; Fri, 08 Aug 2008 09:12:18 -0700 (PDT) Received: by 10.151.12.4 with SMTP id p4mr7508638ybi.214.1218211938427; Fri, 08 Aug 2008 09:12:18 -0700 (PDT) Received: by 10.151.154.14 with HTTP; Fri, 8 Aug 2008 09:12:18 -0700 (PDT) Message-ID: Date: Fri, 08 Aug 2008 20:49:00 -0000 From: "Andrew Bell" To: "Phil Richcreek" Subject: Re: HOWTO Compile with gcc Cc: gcc-help@gcc.gnu.org In-Reply-To: <010a01c8f96c$c5806790$1f12fea9@Dell8250Den> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <010a01c8f96c$c5806790$1f12fea9@Dell8250Den> X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-08/txt/msg00077.txt.bz2 On Fri, Aug 8, 2008 at 10:38 AM, Phil Richcreek wrote: > I need to compile and execute a C program that belongs to a another party. > The author has made all of the source code available to me. My environment > is Windows/XP SP2. The material the author made available includes several > .c files, several .h files, and a makefile. I will be using a library that > is created by one of the C programs in a perl program and also executing > another (provided) C program that will excercise the same library. > > I have installed MinGW. I have little experience with C and even less with > gcc. I've looked through some of the extensive documentation for gcc but am > still uncertain how to get started. Can someone give me some guidance? You may just be able to go to the directory where the makefile sits and type "make". Beyond this, it really depends on your configuration. gcc isn't special with regards to compilers -- it pretty much works the same as others you might have used. -- Andrew Bell andrew.bell.ia@gmail.com