| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| Message-ID: | <3A70BAAE.A5EB86A0@home.com> |
| Date: | Thu, 25 Jan 2001 16:45:50 -0700 |
| From: | Stephen Smith <ischis2 AT home DOT com> |
| X-Mailer: | Mozilla 4.76 [en] (Windows NT 5.0; U) |
| X-Accept-Language: | en |
| MIME-Version: | 1.0 |
| To: | cygwin AT sources DOT redhat DOT com |
| Subject: | Linker error - missing _start |
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 AT AZ75-SSMITH ~
$ ls
hello.c
ssmith AT AZ75-SSMITH ~
$ cat hello.c
#include <stdio.h>
int
main()
{
printf("hello world\n");
return 0;
}
ssmith AT AZ75-SSMITH ~
$
ssmith AT AZ75-SSMITH ~
$ target=powerpc-motorola-elf
ssmith AT 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 AT AZ75-SSMITH ~
$ ls
hello.c
$
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |