NEWBIE: compilation trouble!!!

From: arenaTR (arenaTR_at_comcast.net)
Date: 11/30/03


Date: Sat, 29 Nov 2003 19:05:37 -0500

I'm trying to use the gcc compiler on Suse Linux 9.0 straight from the
command line. I'm a windows refugee, so please be gentle.

I have a bunch of c code with appropriate headers and a Makefile.in and a
Makefile.am. I'm really new to this, and having trouble undersatnding the
theory behind the compilation process, obviouisly affecting my ability to
get this to work.

I've tried:

make makefile.in
    from the directory in which the files reside, getting the message
"nothing to be done" which I understand, since the makefile is supposed to
keep track of only those things that have changed.

make makefile.am
    same thing as makefile.in

gcc makefile.in
    "unrecognized file extension"

gcc cfile.c -main c file, although there are lots of others
    Here I get lots of errors, all relating to not found/not declared
elements.

So, my assumption was that I could just "execute" a compile with the
makefile, which would control the process. This seems not to be the case,
or if it is, I can't seem to find out how.

Your help would be greatly appreciated. I've been reading for a few hours
on this and can't seem to get the answer.

Thanks again!



Relevant Pages

  • Re: Whats the story with the "end of XP"?
    ... Support gives them access to the larger body ... The same compiler suite may be "best" in both ... In the case of ByteCraft compilers, you are truly expert in your field, you work closely and rapidly with customers if there are any issues, and you have top class testing and quality control. ... understanding the inner workings of a relatively simple compiler like GCC ...
    (comp.arch.embedded)
  • [RFC][PATCH-2.6] Clean up and merge compiler-*.h
    ... the kernel headers in include/linux to include/linux-abi. ... * Common definitions for all gcc versions go here. ... -/* Some compiler specific definitions are overwritten here ...
    (Linux-Kernel)
  • Re: LPC900/80C51 Compiler Toolchain
    ... >> supported by GCC, and so they invest. ... > if they already have their in-house compiler. ... one of the main companies in the Symbian consortium ... vendor to provide a good compiler for Atmel AVRs and eventually became ...
    (comp.arch.embedded)
  • Lib X11 compile problem /Xlib.h:3573: error: syntax error before "_X_SENTINEL"
    ... checking for gcc... ... checking for C compiler default output file name... ... checking how to recognise dependent libraries... ...
    (comp.os.linux.x)
  • make error compiling sysbench for MySQL
    ... checking for gcc... ... checking for C compiler default output file name... ... checking libaio.h usability... ... checking libaio.h presence... ...
    (linux.redhat)