From: Stephen Smith <ischis2@home.com>
To: cygwin@sources.redhat.com
Subject: Linker error - missing _start
Date: Thu, 25 Jan 2001 15:45:00 -0000 [thread overview]
Message-ID: <3A70BAAE.A5EB86A0@home.com> (raw)
We may have a slight problem (I compiled as target=powerpc-motorola-elf host=i686-pc-cygwin build=i686-pc-cygwin).
The library is newlib.
When running a hello.c test I am getting a linker error. Can anyone help?
Thanks in advance
------------------------------------- log ------------------------------------
ssmith@AZ75-SSMITH ~
$ ls
hello.c
ssmith@AZ75-SSMITH ~
$ cat hello.c
#include <stdio.h>
int
main()
{
printf("hello world\n");
return 0;
}
ssmith@AZ75-SSMITH ~
$
ssmith@AZ75-SSMITH ~
$ target=powerpc-motorola-elf
ssmith@AZ75-SSMITH ~
$ $target-gcc hello.c
/usr/local/lib/gcc-lib/powerpc-motorola-elf/2.95.2-6/../../../../powerpc-motorola-elf/bin/ld: warning: cannot find entry symbol _start; defaulting to 01800074
/cygdrive/c/DOCUME~1/ssmith/LOCALS~1/Temp/ccF4RY4I.o: In function `main':
/cygdrive/c/DOCUME~1/ssmith/LOCALS~1/Temp/ccF4RY4I.o(.text+0x20): undefined reference to `printf'
collect2: ld returned 1 exit status
ssmith@AZ75-SSMITH ~
$ ls
hello.c
$
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
reply other threads:[~2001-01-25 15:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3A70BAAE.A5EB86A0@home.com \
--to=ischis2@home.com \
--cc=cygwin@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).