Re: Gcc and make not producing executable

2008-03-20 Thread Eduardo Cerejo
> Eduardo Cerejo wrote: > >> On Linux systems, there is no base system 'make', so GNU make is > >> installed as 'make'. On FreeBSD systems, there is a base system make > >> that is maintained by the FreeBSD project, so GNU make is installed as > >> 'gmake'. The main differences in making with them

Re: Gcc and make not producing executable

2008-03-19 Thread Peter Boosten
Eduardo Cerejo wrote: On Linux systems, there is no base system 'make', so GNU make is installed as 'make'. On FreeBSD systems, there is a base system make that is maintained by the FreeBSD project, so GNU make is installed as 'gmake'. The main differences in making with them is that GNU make a

Re: Gcc and make not producing executable

2008-03-19 Thread Eduardo Cerejo
> On Linux systems, there is no base system 'make', so GNU make is > installed as 'make'. On FreeBSD systems, there is a base system make > that is maintained by the FreeBSD project, so GNU make is installed as > 'gmake'. The main differences in making with them is that GNU make and > FreeBSD make

Re: Gcc and make not producing executable

2008-03-19 Thread Reid Linnemann
Written by Eduardo Cerejo on 03/19/08 15:23>> >> gmake does the trick. > > Indeed it did. Can you tell me what the main differences is between make and > gmake in terms of "making"? I can see that gmake is gnu's version of make, > is FreeBSD's gmake the same as linux's make? >

Re: Gcc and make not producing executable

2008-03-19 Thread Erik Trulsson
On Wed, Mar 19, 2008 at 04:23:09PM -0400, Eduardo Cerejo wrote: > > gmake does the trick. > > Indeed it did. Can you tell me what the main differences is between make > and gmake in terms of "making"? I can see that gmake is gnu's version of > make, is FreeBSD's gmake the same as linux's make?

Re: Gcc and make not producing executable

2008-03-19 Thread Eduardo Cerejo
> gmake does the trick. Indeed it did. Can you tell me what the main differences is between make and gmake in terms of "making"? I can see that gmake is gnu's version of make, is FreeBSD's gmake the same as linux's make? ___ freebsd-questions@freebsd

Re: Gcc and make not producing executable

2008-03-18 Thread Peter Boosten
Eduardo Cerejo wrote: Objective is to create a makefile which will create an executable named main. The books has this code in the Makefile: CC=gcc CFLAGS=-Wall main: main.o hello_fn.o clean: rm -f main main.o hello_fn.o The book says this should create two object files named main.o

Gcc and make not producing executable

2008-03-18 Thread Eduardo Cerejo
Hello, I'm trying to get my feet wet in programming in C and the first thing I'm doing is reading a book called an Introduction to GCC. I'm running Fbsd 7-stable I have Gcc44 installed. Example in the book is 3 files named main.c, hello_fn.c and hello.h: File main.c with the following code: