[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help with makefile

actually it's doing mlinux and I get a new error. with rld-cris warning,
cannot find symbol _start; defaulting to 00080074 and then a ton of errors
with undefined reference to common functions.


I'd crawl over an acre of "Visual This++" and "Integrated Development That"
to get to gcc, Emacs, and gdb.  Thank you.

----- Original Message -----
From: "Hans-Peter Nilsson" <hans-peter.nilsson@xxxxxxx.com>
To: <0x90@xxxxxxx.net>
Cc: <dev-etrax@xxxxxxx.com>
Sent: Thursday, October 17, 2002 9:17 AM
Subject: Re: help with makefile

> > From: "0x90" <iip@xxxxxxx.net>
> > Date: Thu, 17 Oct 2002 09:06:21 -0700
> > Ok, I'm writing in ansi C (aside C++ commenting) the code is C, and when
> > compile it can't find stdlib.h? Which in turn causes referencing
> > issues. Is there a way to include libraries or header files or is it
> > that strict?
> If it's not the -mlinux option already pointed out, how did you
> install cris-dist?  You have to remember to unpack the
> linux-headers and glibc in the cris-dist-N.M directory if you
> installed it from source, as per the instructions on the web.
> (The binary packages are recommended for this and other reasons.)
> Other than that, you'll have to state the exact commands and an
> example file, like this working example:
> gcc-cris -O2 -mlinux -o atoiex atoiex.c
> atoiex.c:
> #include <stdlib.h>
> int n;
> int main (void)
> {
>   n = atoi ("42");
>   return 0;
> }
> brgds, H-P